Issue 78111 - Graphic Files in wrong order after Drag&Drop from files browser
Summary: Graphic Files in wrong order after Drag&Drop from files browser
Status: CLOSED WONT_FIX
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: OOo 2.2
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Oliver Specht
QA Contact: issues@sw
URL: http://www.oooforum.org/forum/viewtop...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-05 14:38 UTC by hagar_de_lest
Modified: 2013-08-07 14:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description hagar_de_lest 2007-06-05 14:38:40 UTC
Create a text document and open your files browser displaying a list of
pictures. Select the pics, drag and drop them in the text document. They're
inserted in the wrong order.

Confirmed on :
- MS Vista and OOo 2.2
- Ubuntu 6.06 and OOo 2.2.1 RC2
See here : http://www.oooforum.org/forum/viewtopic.phtml?t=57953
Comment 1 Joe Smith 2007-06-05 16:53:21 UTC
Works correctly for me using Nautilus under Fedora 7, both with the OO.org and
the Fedora-packaged 2.2.0.

Select three images in a Nautilus window:
tg01.jpg
tg02.jpg
tg03.jpg

Drag them together into a new Writer document.

Result: the images are inserted in the document at the same place (Wrap = "No
Wrap") so they overlap: tg01 is on the bottom, tg03 is on the top.

Same result using drag & drop from GThumb image viewer.
Comment 2 hagar_de_lest 2007-06-05 19:19:24 UTC
Sorry, there was a missing information : style for the Graphics frame is
configured with anchor As Character so that the pics don't overlap each others
when dropped in Writer.

I confirm it works fine when anchor is set to something else.
Comment 3 michael.ruess 2007-06-06 14:07:29 UTC
Generally this depends on the system - in which order it passes the files to the
application.
But you say that it works differently when you set the default anchor to "as
character" - but how do you achieve this? In the UI for frame styles the anchor
type is not selectable...?
Comment 4 hagar_de_lest 2007-06-06 14:12:34 UTC
"But you say that it works differently when you set the default anchor to "as
character" - but how do you achieve this?"
You can do that by modifying the Graphics frame style.
See here : http://www.oooforum.org/forum/viewtopic.phtml?p=162494#162494
Comment 5 michael.ruess 2007-06-06 15:12:49 UTC
MRU->OS: when inserting graphics via multiselection in WinExplorer e.g. the
files are in wrong order when the default anchor for graphics is "as character".
Normally, the file which has the focus will be the first one, followed by the
others alphabetically. But when anchored as char, the reverse alphabetical order
will be used.
Comment 6 Joe Smith 2007-06-06 16:05:32 UTC
Ok, I concur. If I set the "Graphics" frame style to "Anchor as character" and
drag the same three files into a new document, they appear in the order: tg01,
tg03, tg02.

This is neither
* the order of the files as passed by the Nautilus file manager
  (drag the files into a shell window: tg01, tg02, tg03),
* nor the directory order (ls -U => tg01, tg02, tg03),
* nor the file modification times:
  23:51 tg01.jpg, 23:55 tg02.jpg, 23:58 tg03.jpg
* nor the files in the .odt archive (unzip -l => tg02, tg01, tg03),

I tried it also with a set of 10 images--the pattern was the same: file#1,
file#10, #9, #8, #7, #6, #5, #4, #3, #2.
Comment 7 Oliver Specht 2007-06-07 09:30:47 UTC
The order of the files is out of our control. The operating system decides that
for us. We don't get the files list in any reliable order.
Comment 8 Joe Smith 2007-06-07 17:54:30 UTC
I respectfully ask you to reconsider this resolution, or at least give some
explanation how this is someone else's problem.

Dragging multiple images from Nautilus into Abiword, Gimp, Inkscape, OOo Draw
and OOo Impress all preserve the order of the images in the file manager.

Dragging the images into Writer, with the default frame style, preserves the
order of the images.

Only when the default frame style anchors the images "As character" is the order
changed.

I can't say if there is a problem with the clipboard or not, but there is
clearly a problem in Writer.

Maybe the problem is more relevant to the fact that wrap types other than "as
character" allow images to overlap. The purpose of changing the wrap setting is
only to workaround the other problem.
Comment 9 Mechtilde 2008-11-06 21:19:04 UTC
close the invalid issue