Commit 07691776 authored by Halla Rempt's avatar Halla Rempt
Browse files

CCBUG:345312 Don't crash when opening an odg created in inkscape

However, the result is empty.
parent 55639422
......@@ -118,10 +118,12 @@ KisImportExportFilter::ConversionStatus KisODGImport::convert(const QByteArray&
if (master) {
const KoXmlElement *style = odfStore.styles().findStyle(
master->attributeNS(KoXmlNS::style, "page-layout-name", QString()));
KoPageLayout pageLayout;
pageLayout.loadOdf(*style);
width = pageLayout.width;
height = pageLayout.height;
if (style) {
KoPageLayout pageLayout;
pageLayout.loadOdf(*style);
width = pageLayout.width;
height = pageLayout.height;
}
}
// We work fine without a master page
......
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