summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabview.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2012-01-06 17:30:27 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2012-01-06 17:32:55 -0500
commite0ea1b528428ac5ee450ed06f80a23e1125cd09b (patch)
tree44c488721e5ad995a88449ff6d8cb30651b003fa /sc/source/ui/view/tabview.cxx
parentc7c65bc0d746b7fa6f63d7e76dc22202e689db09 (diff)
Fixed the validation message popup disappearing when scrolling etc.
When the popup goes outside the visible area & get scrolled back in, it would disappear. Also, when setting the hint message on in the dialog and clicking OK should show the popup right away.
Diffstat (limited to 'sc/source/ui/view/tabview.cxx')
-rw-r--r--sc/source/ui/view/tabview.cxx14
1 files changed, 2 insertions, 12 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 6d1652f7c982..a5fdf313f11a 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -1301,10 +1301,6 @@ IMPL_LINK( ScTabView, ScrollHdl, ScrollBar*, pScroll )
void ScTabView::ScrollX( long nDeltaX, ScHSplitPos eWhich, bool bUpdBars )
{
- bool bHasHint = HasHintWindow();
- if (bHasHint)
- RemoveHintWindow();
-
SCCOL nOldX = aViewData.GetPosX(eWhich);
SCsCOL nNewX = static_cast<SCsCOL>(nOldX) + static_cast<SCsCOL>(nDeltaX);
if ( nNewX < 0 )
@@ -1384,16 +1380,11 @@ void ScTabView::ScrollX( long nDeltaX, ScHSplitPos eWhich, bool bUpdBars )
SetNewVisArea(); // MapMode muss schon gesetzt sein
- if (bHasHint)
- TestHintWindow(); // neu positionieren
+ TestHintWindow();
}
void ScTabView::ScrollY( long nDeltaY, ScVSplitPos eWhich, bool bUpdBars )
{
- bool bHasHint = HasHintWindow();
- if (bHasHint)
- RemoveHintWindow();
-
SCROW nOldY = aViewData.GetPosY(eWhich);
SCsROW nNewY = static_cast<SCsROW>(nOldY) + static_cast<SCsROW>(nDeltaY);
if ( nNewY < 0 )
@@ -1474,8 +1465,7 @@ void ScTabView::ScrollY( long nDeltaY, ScVSplitPos eWhich, bool bUpdBars )
SetNewVisArea(); // MapMode muss schon gesetzt sein
- if (bHasHint)
- TestHintWindow(); // neu positionieren
+ TestHintWindow();
}
void ScTabView::ScrollLines( long nDeltaX, long nDeltaY )