[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - svx/source
Caolán McNamara
caolanm at redhat.com
Thu Oct 6 14:39:52 UTC 2016
svx/source/tbxctrls/tbcontrl.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b73a8e115d9afaf7cc00906d158d1c2f1ba8829c
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Oct 3 10:15:56 2016 +0100
Resolves: tdf#101470 don't restore last value when submenu appears
Change-Id: Ia0cce8607334289b619b1f59dbdd67b000a06e01
(cherry picked from commit b72593fac6addd571158bd37deccccb0045104a8)
Reviewed-on: https://gerrit.libreoffice.org/29475
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 4a94e8a..b711eb5 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -523,7 +523,7 @@ bool SvxStyleBox_Impl::PreNotify( NotifyEvent& rNEvt )
else if ( MouseNotifyEvent::LOSEFOCUS == nType )
{
// don't handle before our Select() is called
- if ( !HasFocus() && !HasChildPathFocus() )
+ if (!HasFocus() && !HasChildPathFocus() && !IsChild(rNEvt.GetWindow()))
SetText( GetSavedValue() );
}
return ComboBox::PreNotify( rNEvt );
More information about the Libreoffice-commits
mailing list