Issue 80658 - Picture Selection Selects Wrong File If Preview Not Fully Loaded
Summary: Picture Selection Selects Wrong File If Preview Not Fully Loaded
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: 680m225
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2007-08-13 19:44 UTC by drichard
Modified: 2013-02-07 22:02 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this issue.
Description drichard 2007-08-13 19:44:08 UTC
This bug has been around for a long time, and it's getting worse because image
sizes are increasing.  It's very possible that it's made worse over remote display.

When you are selecting an image to insert and click focus into a file name it
attempts to render a thumbnail in the file manager.  If the image is like
1600x1200 (screenshots in PNG format in this case) it takes about 1-2 seconds
for the image to preview.  However, if while it's rendering and not quite
finished you double-click on another file name it picks the wrong picture to
insert. It picks the picture that it was generating the thumbnail. This happens
even though I can clearly see the second file being highlighted.  

A thread is wrong or something, and it actually picks what is in the preview
area, and not what you double-click on.  I can recreate this easily, and every time.
Comment 1 mci 2007-08-30 08:34:15 UTC
Hi drichard,
I wasn't able to reproduce this behaviour using Windows XP and OOo2.2.1, opened
files are stored on a network share (to make thhis all a bit slower...)...

I selected one file , waited for the preview and chose the second file (double
click) before OOo finished the preview...

You're still using Linux/Citrix, don't you?
I don't have the possibility to try this at the moment... :(

Do you use OOos own file dialogs or do you use system dialogs?

adding mci to cc
Comment 2 drichard 2007-08-30 14:07:48 UTC
   This is using the OpenOffice dialogs.  It's the dialog that generates a
thumbnail while you are clicking through images after Insert >> Picture.  
Smaller images load in immediately, but there is a 1 second delay on something
like a 1600x1200 screen dump; you highlight the file and can do a 1 count before
the thumbnail is generated in the OOo dialog.  

   You don't need Citrix, you should be able to recreate this easily with remote
display.  Just remote display OOo from one Linux computer to another and then
create a few 16 or 24 bit color depth dumps and test.   In fact, I think this
doesn't happen on Citrix because it's not able to click as quickly because of
the compression delays.

   I think it's an issue of remote display being just a split second slower than
on the local video card, and you guys never see it.  I bet if you look at the
area of the code where the thumbnail generates that it's possibly to click into
another file before the thumbnail is finished.