diff options
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/lngprophelp.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/linguistic/source/lngprophelp.cxx b/linguistic/source/lngprophelp.cxx index fd633f4671f5..7c061be2a621 100644 --- a/linguistic/source/lngprophelp.cxx +++ b/linguistic/source/lngprophelp.cxx @@ -584,8 +584,6 @@ bool PropertyHelper_Hyphen::propertyChange_Impl( const PropertyChangeEvent& rEvt if (!bRes && GetPropSet().is() && rEvt.Source == GetPropSet()) { - sal_Int16 nLngSvcFlags = LinguServiceEventFlags::HYPHENATE_AGAIN; - sal_Int16 *pnVal = nullptr; switch (rEvt.PropertyHandle) { @@ -601,11 +599,8 @@ bool PropertyHelper_Hyphen::propertyChange_Impl( const PropertyChangeEvent& rEvt bRes = (pnVal != nullptr); if (bRes) { - if (nLngSvcFlags) - { - LinguServiceEvent aEvt( GetEvtObj(), nLngSvcFlags ); - LaunchEvent( aEvt ); - } + LinguServiceEvent aEvt(GetEvtObj(), LinguServiceEventFlags::HYPHENATE_AGAIN); + LaunchEvent(aEvt); } } |