Kaydet (Commit) 4e5123fc authored tarafından Mark Hung's avatar Mark Hung

tdf#77961 regard layout-grid-print as off when missing.

Change-Id: I8404ebed8ba84ee83528310ee63f796356674553
Reviewed-on: https://gerrit.libreoffice.org/43830Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMark Hung <marklh9@gmail.com>
üst d4064927
......@@ -1700,6 +1700,7 @@ DECLARE_ODFEXPORT_TEST(testTdf77961, "tdf77961.odt")
uno::Reference<container::XNameAccess> xStyles(getStyles("PageStyles"));
uno::Reference<beans::XPropertySet> xStyle(xStyles->getByName("Standard"), uno::UNO_QUERY);
CPPUNIT_ASSERT_EQUAL( false , getProperty<bool>(xStyle, "GridDisplay"));
CPPUNIT_ASSERT_EQUAL( false , getProperty<bool>(xStyle, "GridPrint"));
}
#endif
......
......@@ -160,6 +160,9 @@ XMLTextMasterPageContext::XMLTextMasterPageContext( SvXMLImport& rImport,
if ( xPropSetInfo->hasPropertyByName( "GridDisplay" ) )
xPropSet->setPropertyValue( "GridDisplay", Any(false) );
if ( xPropSetInfo->hasPropertyByName( "GridPrint" ) )
xPropSet->setPropertyValue( "GridPrint", Any(false) );
bInsertHeader = bInsertFooter = true;
bInsertHeaderLeft = bInsertFooterLeft = true;
bInsertHeaderFirst = bInsertFooterFirst = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment