summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/hdrcont.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/hdrcont.cxx')
-rw-r--r--sc/source/ui/view/hdrcont.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sc/source/ui/view/hdrcont.cxx b/sc/source/ui/view/hdrcont.cxx
index f37f4755d9c0..1efe6ea6925e 100644
--- a/sc/source/ui/view/hdrcont.cxx
+++ b/sc/source/ui/view/hdrcont.cxx
@@ -710,9 +710,15 @@ void ScHeaderControl::MouseButtonDown( const MouseEvent& rMEvt )
Point aPoint;
Rectangle aVis( aPoint,GetOutputSizePixel() );
if (bVertical)
- aVis.Left() = LONG_MIN, aVis.Right() = LONG_MAX;
+ {
+ aVis.Left() = LONG_MIN;
+ aVis.Right() = LONG_MAX;
+ }
else
- aVis.Top() = LONG_MIN, aVis.Bottom() = LONG_MAX;
+ {
+ aVis.Top() = LONG_MIN;
+ aVis.Bottom() = LONG_MAX;
+ }
pSelEngine->SetVisibleArea( aVis );
SetMarking( true ); // must precede SelMouseButtonDown