summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-04-18 09:48:47 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-04-19 14:29:13 +0200
commiteb526d8b258844b050e57251baa8034eb5d5787c (patch)
tree49a9658d04837ee89c3d4dcd3f937ea972b3b59a /sc
parent0909f448fe2871bc7f6b410f23bdaa4d421dea9a (diff)
change strange way of testing a bool
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/preview.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx
index e83224d0e897..bc2d355f3daa 100644
--- a/sc/source/ui/view/preview.cxx
+++ b/sc/source/ui/view/preview.cxx
@@ -257,7 +257,7 @@ void ScPreview::CalcPages()
nPages.push_back(0);
if ( i == static_cast<SCTAB>(nFirstAttr.size()))
nFirstAttr.push_back(0);
- if (!aOptions.GetAllSheets() && !maSelectedTabs.count(i) > 0)
+ if (!aOptions.GetAllSheets() && maSelectedTabs.count(i) == 0)
{
nPages[i] = 0;
nFirstAttr[i] = 0;