diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-05 22:13:52 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-05 22:27:29 -0500 |
commit | c43a4cb4ffc80c49b8e51ae0796321a6b73b5e99 (patch) | |
tree | 152ffece44deff0e117f5b1be039874101ebc926 /sc/source/ui/view/tabview.cxx | |
parent | 6069ef7976c4455c1875afecf02c41c5731f6546 (diff) |
fdo#36851, bnc#737190: Make the data validation popup more reliable.
Previously, the data validation message popup was not sticking on
reliably on Linux, and flickers very bad on Windows. That was due to
the painting conflict between the top-most frame window and the grid
window. By making the message popup window a child window of the
grid window, it paints more reliably.
Diffstat (limited to 'sc/source/ui/view/tabview.cxx')
-rw-r--r-- | sc/source/ui/view/tabview.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx index bba84cd9321c..6d1652f7c982 100644 --- a/sc/source/ui/view/tabview.cxx +++ b/sc/source/ui/view/tabview.cxx @@ -142,6 +142,7 @@ #include "AccessibilityHints.hxx" #include "appoptio.hxx" #include "attrib.hxx" +#include "hintwin.hxx" #include <com/sun/star/sheet/DataPilotFieldOrientation.hpp> @@ -307,7 +308,7 @@ ScTabView::ScTabView( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pView aCornerButton( pFrameWin, &aViewData, false ), aTopButton( pFrameWin, &aViewData, sal_True ), aScrollBarBox( pFrameWin, WB_SIZEABLE ), - pInputHintWindow( NULL ), + mpInputHintWindow( NULL ), pPageBreakData( NULL ), pBrushDocument( NULL ), pDrawBrushSet( NULL ), @@ -390,7 +391,7 @@ void ScTabView::DoResize( const Point& rOffset, const Size& rSize, bool bInner ) { HideListBox(); - bool bHasHint = ( pInputHintWindow != NULL ); + bool bHasHint = HasHintWindow(); if (bHasHint) RemoveHintWindow(); @@ -1300,7 +1301,7 @@ IMPL_LINK( ScTabView, ScrollHdl, ScrollBar*, pScroll ) void ScTabView::ScrollX( long nDeltaX, ScHSplitPos eWhich, bool bUpdBars ) { - sal_Bool bHasHint = ( pInputHintWindow != NULL ); + bool bHasHint = HasHintWindow(); if (bHasHint) RemoveHintWindow(); @@ -1389,7 +1390,7 @@ void ScTabView::ScrollX( long nDeltaX, ScHSplitPos eWhich, bool bUpdBars ) void ScTabView::ScrollY( long nDeltaY, ScVSplitPos eWhich, bool bUpdBars ) { - sal_Bool bHasHint = ( pInputHintWindow != NULL ); + bool bHasHint = HasHintWindow(); if (bHasHint) RemoveHintWindow(); |