summaryrefslogtreecommitdiff
path: root/sc
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:16 -0500
commit7921b5931a4a870dcde495255b36f8a312bbf055 (patch)
treef2f7171fa1694f77222cb3d35790bbddc1321fc9 /sc
parent2a2f2d8a858872b857fd3d571596e9f04e08bb28 (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')
-rw-r--r--sc/source/ui/view/cellsh2.cxx1
-rw-r--r--sc/source/ui/view/tabview.cxx14
2 files changed, 3 insertions, 12 deletions
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx
index dcc4d9f2c548..a51e8b91afe0 100644
--- a/sc/source/ui/view/cellsh2.cxx
+++ b/sc/source/ui/view/cellsh2.cxx
@@ -911,6 +911,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
aData.ResetError(); // reset only bShowError
pTabViewShell->SetValidation( aData );
+ pTabViewShell->TestHintWindow();
rReq.Done( *pOutSet );
}
//after end execute from !IsModalInputMode, it is safer to delay deleting
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 )