[Libreoffice-commits] core.git: sot/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 19 10:58:09 UTC 2018
sot/source/sdstor/stgio.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit b739827f996262fb3719c25a622a0482cdb4c626
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Oct 19 10:02:37 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Oct 19 12:56:43 2018 +0200
simplify expression
Change-Id: I57c7df50040737656c2a68e5fdc0d069ad21f833
Reviewed-on: https://gerrit.libreoffice.org/61975
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sot/source/sdstor/stgio.cxx b/sot/source/sdstor/stgio.cxx
index bcfff0d51118..803ab3761b68 100644
--- a/sot/source/sdstor/stgio.cxx
+++ b/sot/source/sdstor/stgio.cxx
@@ -211,8 +211,9 @@ FatError EasyFat::Mark( sal_Int32 nPage, sal_Int32 nCount, sal_Int32 nExpect )
{
if( nCount > 0 )
{
- --nCount /= GetPageSize();
- nCount++;
+ --nCount;
+ nCount /= GetPageSize();
+ ++nCount;
}
sal_Int32 nCurPage = nPage;
More information about the Libreoffice-commits
mailing list