summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/hyphen.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/dialogs/hyphen.cxx')
-rw-r--r--cui/source/dialogs/hyphen.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/cui/source/dialogs/hyphen.cxx b/cui/source/dialogs/hyphen.cxx
index e7bfc03a3d5c..7e4e72474045 100644
--- a/cui/source/dialogs/hyphen.cxx
+++ b/cui/source/dialogs/hyphen.cxx
@@ -360,19 +360,15 @@ IMPL_LINK( SvxHyphenWordDialog, HyphenateAllHdl_Impl, Button *, EMPTYARG /*pButt
{
try
{
- uno::Reference< beans::XPropertySet > xProp( SvxGetLinguPropertySet() );
- const OUString aName( "IsHyphAuto" );
- uno::Any aAny;
+ uno::Reference< linguistic2::XLinguProperties > xProp( SvxGetLinguPropertySet() );
- aAny <<= sal_True;
- xProp->setPropertyValue( aName, aAny );
+ xProp->setIsHyphAuto( sal_True );
bBusy = sal_True;
ContinueHyph_Impl( /*nHyphPos*/nOldPos );
bBusy = sal_False;
- aAny <<= sal_False;
- xProp->setPropertyValue( aName, aAny );
+ xProp->setIsHyphAuto( sal_False );
}
catch (uno::Exception &e)
{