--export-latex crashes with a svg file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
High
|
Hiroshi Takekawa | ||
0.92.x |
Fix Released
|
High
|
Hiroshi Takekawa |
Bug Description
I created time.svg with inkscape 0.48.x.
And I succeeded to convert to pdf and latex file with inkscape 0.48.x:
inkscape -D -z --file=time.svg --export-
But I failed with inkscape 0.91.
Please find time.svg attached.
Possible work-around patch is below (I'm not sure this is a correct patch, but it works):
--- src/libnrtype/
+++ src/libnrtype/
@@ -190,7 +190,7 @@
/** For expressing paragraph alignment. These values are rotated in the
case of vertical text, but are not dependent on whether the paragraph is
rtl or ltr, thus LEFT is always either left or top. */
- enum Alignment {LEFT, CENTER, RIGHT, FULL};
+ enum Alignment {LEFT, CENTER, RIGHT, FULL, NONE};
/** The CSS spec allows line-height:normal to be whatever the user agent
thinks will look good. This is our value, as a multiple of font-size. */
@@ -1068,7 +1068,7 @@
{return it._char_index == _characters.size() ? _paragraphs.size() - 1 : _characters[
inline Layout::Alignment Layout:
- {return _paragraphs[
+ {return (_paragraphs.size() == 0) ? NONE : _paragraphs[
inline bool Layout:
{
Related branches
tags: | added: cli exporting |
tags: | removed: cli |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Reproduced with Inkscape 0.91 r13725 and 0.91+devel r14201 on OS X 10.7.5 - happens on the command line as well as when exporting via GUI (with latex-export enabled).
Attached is the reduced test case with the 'Flowed text' object which triggers the crash: AFAICT it is the last of the four empty flowed text elements in the original document, which - compared to the other three - lacks an empty <flowPara /> element.
The crash does not occur after manually adding the <flowPara /> element.