Mantis Issue Tracking for Scribus
· Hosting provided by Anduin.net / Øverby Consulting ·

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008056ScribusImport / Exportpublic09-May-18 02:3414-Sep-05 01:24
Reporterrenm 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformLinuxOSUbuntu x86_64OS Version9.04
Product Version1.3.5svn 
Target VersionFixed in Version 
Summary0008056: [PATCH] Import pages with linked text frames will break the link across pages
DescriptionTry to import the pages from other sla file (create new pages in current sla) and find out the result pages do not look exactly like the original.

After imported, the linked text frames lose the link at the page boundary. The original 'indent' paragraph breaks between pages, and at beginning of the 2nd page, the text will start with 'indent' style text as a new paragraph (the original would be continue text flow).

Workaround is to relink all of them manually. For 1.3.3.x, you have to change the first paragraph on each of the following pages to 'non-indent' style to mimic the original layout since there is no way to relink the filled frame in version 1.3.3.x.
TagsNo tags attached.
Attached Files? file icon 2page with linked frames to import.sla [^] (17,562 bytes) 14-Feb-23 14:18
diff file icon jl_importlinks_2.diff [^] (6,060 bytes) 14-Feb-25 12:33 [Show Content]

- Relationships
has duplicate 0008740closedjghali Text box links lost when importing pages 
has duplicate 0008778closedchristoph_s importing pages from a scribus document: text frames are not linked properly 
has duplicate 0010316closedjghali Importing an SLA doc with linked text frames 
has duplicate 0010753closedjghali Importing pages loses text frame linking 
has duplicate 0011110closedjghali Import SLA looses links between linked text frames 
has duplicate 0011155closedjghali Import pages doesn't import link information 
has duplicate 0012128closedjghali Importing Scribus 1.4 pages with text frames forward linked across pages 
related to 0012018confirmed Undo does not behave as expected with linked Text Frames 
related to 0011240confirmed After crash, linked textframes unlinked 

-  Notes
(0027015)
JLuc (updater)
11-Oct-13 12:34
edited on: 14-Feb-23 14:19

I dont get that 'Indent' problem.

http://bugs.scribus.net/view.php?id=10316 [^] (Fixed) describes in details various faulty SLA Import behaviours. Beside unlinking of text frames, 2 phenomenons happen in some cases : - loss of elements in the masterpage (not imported) - all linked frames are imported twice : once linked but empty, 2nd not linked but with text in first frame.

(0029770)
JLuc (updater)
13-Jan-27 17:56

Same with 1.4.3 : linked text frames are not linked in the document where they have been imported.

Besides, it seems that masterpages elements are not imported neither.
(0031294)
JLuc (updater)
14-Feb-09 15:47
edited on: 14-Feb-23 13:44

Same with 1.5

0011408 is also related to restoring links between text frames, but when undoing some page delete.

(0031375)
JLuc (updater)
14-Feb-23 14:04
edited on: 14-Feb-23 14:04

I upload a sample 2 pages document, with 2 textframes on each page, all of them linked in a 4 frames chain. As a consequence, there is a link on each page and a link that crosses the page boundary.

When imported with "Page(s) > Import" into another document, all frames are imported, the links on each page is imported, but not the link across page boundaries. That's because Scribus150Format::loadPage loads ONE page at a time, with no view of the global job being done.

(0031380)
JLuc (updater)
14-Feb-25 02:18

I upload patch that fixes the issue.
Please test and merge when possible.
(0031382)
JLuc (updater)
14-Feb-25 12:32
edited on: 14-Feb-25 12:45

I upload improved version of patch.
It shouldnt change now.

Some explanations :

- a new unknownLinks variable is added to Scribus150Format class. This variable of class QMap gather the links where the destination doesnt exist yet when the link is imported.
Later on, when that frame is imported, it is recognised and the link is created.

- when importaing many pages (for "Page Import" menu action) pageLoad is first called with PageNumber set to -1 so as to clear the unknownLinks set.
When the pageLoad action is finished it is called once more with PageNumber set to -1 : it enables to display a warning message when some links that could not be imported are left (because theyr destination has not been imported). And it clears the unknownLinks that are now useless.

How to test :
- create doc1
- import all pages of doc2 having linked links across pages : links should be imported too (that's the fix !)
- import only one page of doc2 : link can not be imported since destination frame is on not imported page. A nice warning is issued.

(0031404)
JLuc (updater)
14-Feb-26 09:56
edited on: 14-Mar-06 11:34

In loadPages, the first call with -1 is meant to be sure to initialise unknownLinks. Since it should be allready empty normally ATM, this "begin" init is not strictly required (but IMO it's not bad to have that "begin" because it balances the "end" -1 call. for example, it might later be usefull for some other loadplugin or some other import page feature to be managed ?).

(0032355)
FirasH (developer)
14-Jun-28 16:43

Same here with 1.4.5.svn (19285) and 1.5.0.svn (19288).
(0032891)
JLuc (updater)
14-Jul-21 21:49

The proposed patch for scribus 1.5 fixes this bug. The proposed patch does not fix the same bug that occur when scribus 1.5 imports some 1.4 document.

IMO This patch should be taken as it is and be merged in trunk as is.
(0033457)
Kunda (developer)
14-Sep-02 15:04

So the proposal with this patch is to implement it for 1.5svn without backporting. Probably will break backward compatibility functionality, right?
(0033460)
JLuc (updater)
14-Sep-02 17:31
edited on: 14-Sep-02 18:55

1.5 SLA can not be opened into Scribus 1.4. That's not an issue.

The proposed patch fixes the described issue when importing 1.5 SLA into scribus 1.5. It's not backportable to scribus 1.4 because scribus 1.4 only opens 1.4 SLA and the fix doesnt tackle the import of 1.4 SLA.

This being said, I'm not sure to fully understand what you mean with "probably break backward compatibility", but i can say that this patch only brings improvements and does not introduce any new compatibility issues.

(0033503)
Kunda (developer)
14-Sep-05 01:23
edited on: 14-Sep-05 01:24

fixed typo in bug summary
Question: Will this patch fix 0011240 ?


- Issue History
Date Modified Username Field Change
09-May-18 02:34 renm New Issue
10-Jan-23 20:08 jghali Relationship added has duplicate 0008740
10-Feb-07 01:52 christoph_s Relationship added has duplicate 0008778
11-Oct-13 00:24 jghali Relationship added has duplicate 0010316
11-Oct-13 12:34 JLuc Note Added: 0027015
12-Jun-15 15:15 jghali Relationship added has duplicate 0010753
12-Oct-09 20:27 jghali Relationship added has duplicate 0011110
12-Nov-06 14:31 jghali Relationship added has duplicate 0011155
13-Jan-27 17:56 JLuc Note Added: 0029770
14-Feb-09 15:45 JLuc Tag Attached: easyhack
14-Feb-09 15:47 JLuc Note Added: 0031294
14-Feb-09 22:18 JLuc Note Edited: 0031294 View Revisions
14-Feb-09 22:19 JLuc Note Edited: 0031294 View Revisions
14-Feb-23 12:24 JLuc Tag Detached: easyhack
14-Feb-23 12:26 JLuc Note Edited: 0031294 View Revisions
14-Feb-23 12:36 JLuc Note Edited: 0031294 View Revisions
14-Feb-23 12:36 JLuc Note Edited: 0031294 View Revisions
14-Feb-23 13:44 JLuc Note Edited: 0031294 View Revisions
14-Feb-23 14:00 JLuc File Added: page with linked frames import.sla
14-Feb-23 14:04 JLuc Note Added: 0031375
14-Feb-23 14:04 JLuc Note Edited: 0031375 View Revisions
14-Feb-23 14:17 JLuc File Deleted: page with linked frames import.sla
14-Feb-23 14:18 JLuc File Added: 2page with linked frames to import.sla
14-Feb-23 14:19 JLuc Note Edited: 0027015 View Revisions
14-Feb-25 02:17 JLuc File Added: jl_unknownlinks.diff
14-Feb-25 02:18 JLuc Note Added: 0031380
14-Feb-25 12:32 JLuc Note Added: 0031382
14-Feb-25 12:32 JLuc File Deleted: jl_unknownlinks.diff
14-Feb-25 12:33 JLuc File Added: jl_importlinks_2.diff
14-Feb-25 12:35 JLuc Note Edited: 0031382 View Revisions
14-Feb-25 12:45 JLuc Note Edited: 0031382 View Revisions
14-Feb-26 09:56 JLuc Note Added: 0031404
14-Mar-06 11:34 JLuc Note Edited: 0031404 View Revisions
14-Mar-08 22:49 jghali Relationship added has duplicate 0012128
14-Jun-28 16:43 FirasH Note Added: 0032355
14-Jun-28 16:43 FirasH Status new => confirmed
14-Jul-21 01:27 Kunda Relationship added related to 0012018
14-Jul-21 01:30 Kunda Summary Import pages with linked text frames will break the link that acrosses the pages => [PATCH] Import pages with linked text frames will break the link that acrosses the pages
14-Jul-21 21:49 JLuc Note Added: 0032891
14-Jul-22 13:31 Kunda Summary [PATCH] Import pages with linked text frames will break the link that acrosses the pages => [PATCH] Import pages with linked text frames will break the link that across pages
14-Jul-22 13:31 Kunda Description Updated View Revisions
14-Aug-21 13:50 Kunda Relationship added related to 0011240
14-Sep-02 15:04 Kunda Note Added: 0033457
14-Sep-02 17:31 JLuc Note Added: 0033460
14-Sep-02 18:55 JLuc Note Edited: 0033460 View Revisions
14-Sep-02 18:55 JLuc Note Edited: 0033460 View Revisions
14-Sep-05 01:23 Kunda Note Added: 0033503
14-Sep-05 01:23 Kunda Summary [PATCH] Import pages with linked text frames will break the link that across pages => [PATCH] Import pages with linked text frames will break the link across pages
14-Sep-05 01:24 Kunda Note Edited: 0033503 View Revisions



Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker