View Issue Details

IDProjectCategoryView StatusLast Update
0010595ScribusImport / Exportpublic2012-04-29 10:57
Reporterc.amerijckx@nirond.be Assigned Tojghali  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.4.0 
Fixed in Version1.4.1.svn 
Summary0010595: Imported page, in some case, loses its text frame style
DescriptionI am using Scribus 1.4.0. When importing a document inside another
one (either via the menus Page->Import or via the API command
importPage), the style of the Text Frames are lost. Looking at the
resulting document, it seems that the Style XML section is not imported
and the text frame style is replaced by a "Default Paragraph Style".

I don't know if I am doing something wrong or if this is bug/feature but
for sure, this is not the expected result.

I'm attaching the test
case I am using. There are two documents Document-1.sla and
Document-2.sla. In both documents, the texts in the frames are coming
from an OpenOffice document and imported using getText. I am also
attaching a Python script in order to execute the same commands (you'll
have to fix the path to the files in it).

In Document-1, I have 2 styles: Doc1_Heading_20_1 and Doc1_Text_20_body
In Document-2, I also have 2 styles: Doc2_Heading_20_1 and Doc2_Text_20_body

In the merged document, I only have the Document-1 style; the style for
the second frame is replaced by: Default Paragraph Style.

Using the drop down menu inside Properties > Text > Styles... only shows
the Document-1 style, nothing for Document-2.

There is a workaround. Before importing the page, I'm doing a "loadStylesFromFile" (commented in the Python script)
to have the styles already known inside the document. This is working
and the output document contains (and is using) all the correct styles.

But this is still a workaround...

Don't hesitate to get in touch if you need more info.
TagsNo tags attached.
Patch

Activities

c.amerijckx@nirond.be

2012-02-23 09:22

reporter  

mergeSLA.zip (11,015 bytes)

jghali

2012-02-25 12:49

administrator   ~0027749

Thanks, it's a pleasure to fix such an issue when we have all the necessary details!

Issue History

Date Modified Username Field Change
2012-02-23 09:22 c.amerijckx@nirond.be New Issue
2012-02-23 09:22 c.amerijckx@nirond.be File Added: mergeSLA.zip
2012-02-25 12:49 jghali Note Added: 0027749
2012-02-25 12:49 jghali Status new => resolved
2012-02-25 12:49 jghali Fixed in Version => 1.4.1.svn
2012-02-25 12:49 jghali Resolution open => fixed
2012-02-25 12:49 jghali Assigned To => jghali
2012-04-29 10:57 cbradney Status resolved => closed