diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-08-20 22:01:08 -0500 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-09-14 07:10:51 +0000 |
commit | 3d934d48606acf8c5c96d0d8b96e2f202db1f37d (patch) | |
tree | a560012a46f4ca7d4274fc0fcb763eaf0e010720 /svtools | |
parent | a1a165f1af228bcd206bc6be91bcc98e4c06bcfc (diff) |
gridfixes: #i112465# delegate RequestHelp to the base class,
when we do not have own help to display
Change-Id: I953144aa0921e849df14e9de31010e8904dffc5f
Reviewed-on: https://gerrit.libreoffice.org/539
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/table/tabledatawindow.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/svtools/source/table/tabledatawindow.cxx b/svtools/source/table/tabledatawindow.cxx index cc84f5315a74..4f69758f4307 100644 --- a/svtools/source/table/tabledatawindow.cxx +++ b/svtools/source/table/tabledatawindow.cxx @@ -142,18 +142,26 @@ namespace svt { namespace table if ( !sHelpText.isEmpty() ) { + // hide the standard (singleton) help window, so we do not have two help windows open at the same time + Help::HideBalloonAndQuickHelp(); + Rectangle const aControlScreenRect( OutputToScreenPixel( Point( 0, 0 ) ), GetOutputSizePixel() ); if ( m_nTipWindowHandle ) + { Help::UpdateTip( m_nTipWindowHandle, this, aControlScreenRect, sHelpText ); + } else m_nTipWindowHandle = Help::ShowTip( this, aControlScreenRect, sHelpText, nHelpStyle ); } else + { impl_hideTipWindow(); + Window::RequestHelp( rHEvt ); + } } //------------------------------------------------------------------------------------------------------------------ |