summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8
diff options
context:
space:
mode:
authorSourav <sourav.mahajan@synerzip.com>2014-04-24 18:18:16 +0530
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-04-28 10:04:21 +0200
commitf0860625e29c18d2eca647a6cedd0ce679d5a80d (patch)
treeb2867d5dbf98294515caa550743e5eae9580cd97 /sw/source/filter/ww8
parentd6904736b9a07b2a321add96be4857ba41a7f370 (diff)
fdo#77719 File containing CusGeom gets corrupted on RT.
RT file gets corrupted because in presetgeometry tag shapetype is coming as blank. A check is introduced to handle that. Reviewed on: https://gerrit.libreoffice.org/9147 Change-Id: Ie79db0f5dcadfa3cd5d3f54d4a676393b3a882c5
Diffstat (limited to 'sw/source/filter/ww8')
-rw-r--r--sw/source/filter/ww8/docxsdrexport.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/docxsdrexport.cxx b/sw/source/filter/ww8/docxsdrexport.cxx
index 5c5d5a233dcb..563e124a9b23 100644
--- a/sw/source/filter/ww8/docxsdrexport.cxx
+++ b/sw/source/filter/ww8/docxsdrexport.cxx
@@ -1164,6 +1164,9 @@ void DocxSdrExport::writeDMLTextFrame(sw::Frame* pParentFrame, int nAnchorId)
}
}
}
+ //Empty shapeType will lead to corruption so to avoid that shapeType is set to default i.e. "rect"
+ if (shapeType.isEmpty())
+ shapeType = "rect";
pFS->singleElementNS(XML_a, XML_prstGeom,
XML_prst, OUStringToOString(shapeType, RTL_TEXTENCODING_UTF8).getStr(),