[Libreoffice-commits] core.git: writerfilter/source
Justin Luth (via logerrit)
logerrit at kemper.freedesktop.org
Sat Aug 10 12:21:43 UTC 2019
writerfilter/source/dmapper/StyleSheetTable.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit a1973e0511625ab79332f9e2859c26c37cdd04b8
Author: Justin Luth <justin_luth at sil.org>
AuthorDate: Fri Aug 9 19:56:12 2019 +0300
Commit: Justin Luth <justin_luth at sil.org>
CommitDate: Sat Aug 10 14:21:07 2019 +0200
NFC cleanup writerfilter: reuse existing variable
Change-Id: Ib44d5296c7879fe872c33357ee0bf24d27c143af
Reviewed-on: https://gerrit.libreoffice.org/77228
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth at sil.org>
diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx
index 32f4d401d781..da7fef117c63 100644
--- a/writerfilter/source/dmapper/StyleSheetTable.cxx
+++ b/writerfilter/source/dmapper/StyleSheetTable.cxx
@@ -1063,8 +1063,7 @@ void StyleSheetTable::ApplyStyleSheets( const FontTablePtr& rFontTable )
{
// remove Left/RightMargin values from TOX heading styles
//left margin is set to NULL by default
- uno::Reference< beans::XPropertyState >xState1( xStyle, uno::UNO_QUERY_THROW );
- xState1->setPropertyToDefault(getPropertyName( PROP_PARA_LEFT_MARGIN ));
+ xState->setPropertyToDefault(getPropertyName( PROP_PARA_LEFT_MARGIN ));
}
else if ( sConvertedStyleName == "Text body" )
xState->setPropertyToDefault(getPropertyName( PROP_PARA_BOTTOM_MARGIN ));
More information about the Libreoffice-commits
mailing list