Bug 45248 - insertDocumentFromURL doesn't insert RTF files at cursor position
Summary: insertDocumentFromURL doesn't insert RTF files at cursor position
Status: CLOSED DUPLICATE of bug 43869
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 RC1
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Miklos Vajna
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: mab3.5
  Show dependency treegraph
 
Reported: 2012-01-25 19:51 UTC by Simon Kornblith
Modified: 2012-03-21 12:29 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Kornblith 2012-01-25 19:51:52 UTC
In LibreOffice 3.5rc1 (but not LibreOffice 3.4), calling insertDocumentFromURL on a TextCursor always inserts RTF documents at the end of the current document, instead of inserting them at the TextCursor location. This can be seen both in the GUI and in code making use of this API directly. This does not happen when inserting odt documents.

While the below STR do not seem particularly severe, this breaks our extension (Zotero LibreOffice Integration), which uses insertDocumentFromURL to insert a bibliography at a specified cursor position. We have an installed base of >18,000.

STEPS TO REPRODUCE:
1. Create an RTF document with some text in it (document A).
2. Type some text into a new document (document B).
3. Move the cursor to the beginning of document B.
4. Use Insert->File to insert document A into document B. Instead of appearing at the cursor position, document B appears at the end.
Comment 1 Jean-Baptiste Faure 2012-01-25 21:43:36 UTC
I reproduce with LO 3.5.0 rc2+ under Ubuntu 11.10.
Maybe related to bug 43869 ?

Miklos : do you confirm ? Please feel free to reassign if you can't handle this bug.

Best regards. JBF
Comment 2 Miklos Vajna 2012-01-26 01:51:58 UTC

*** This bug has been marked as a duplicate of bug 43869 ***
Comment 3 Jean-Baptiste Faure 2012-03-21 12:29:43 UTC
closing