diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-19 10:02:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-19 12:56:43 +0200 |
commit | b739827f996262fb3719c25a622a0482cdb4c626 (patch) | |
tree | 8889fad9a5e9ba89388b007c5226e4db50a68f11 /sot | |
parent | 0fa25c261ad1bac1303f8a35d89261365bb5d849 (diff) |
simplify expression
Change-Id: I57c7df50040737656c2a68e5fdc0d069ad21f833
Reviewed-on: https://gerrit.libreoffice.org/61975
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgio.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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; |