Bug 1079672

Summary: Insert image dialog inserts wrong image when double-clicking
Product: [Fedora] Fedora Reporter: Cristián Rojas <mechonbarsa>
Component: libreofficeAssignee: Michael Stahl <mstahl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: caolanm, dtardon, erack, ltinkl, mstahl, sbergman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libreoffice-4.2.6.2-2.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-13 16:37:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Image of the bug. none

Description Cristián Rojas 2014-03-22 21:28:27 UTC
Created attachment 877674 [details]
Image of the bug.

Description of problem:

When I edit a slide in Impress, and I want to insert an image in a section using the "insert image" function, regardless of what image I've selected, Impress inserts the first one (alphabetically) of the folder.

Version-Release number of selected component (if applicable):

Build ID: 4.2.2.1-7.fc20

Steps to Reproduce:
1. Create a new slide
2. Apply to it the "Title and 2 content" layout
3. Click on "Insert image"
4. Go to a folder that has more than one image
5. Try to insert anything but the first image

Actual results:

The image inserted is the first image

Expected results:

The image inserted should be the image I selected.

Comment 1 Michael Stahl 2014-08-07 13:40:00 UTC
... can reproduce it with gtk2 dialogs - have to double-click very
fast on a file that is not the current selected one; also "Preview"
must be enabled.

oh noes... what happens is that Impress actually uses the loaded
preview image of the dialog, and that is updated async from
a timer, so if you double-click the dialog closes before it
can display the new file, so you get the old one inserted...

fixed upstream master by commit:
f1589f768bbd1d8baea6e442f392831851bdbb3b

fixed upstream libreoffice-4-3 branch for 4.3.3 by commit:
cddfd33a3bea009394ec2b5c1cb94d09d8c40b23

fixed upstream libreoffice-4-2 branch for 4.2.7 by commit:
e1b57d025b0523479fe906f050c5639ad280b481

added patch to F20 package

Comment 2 Michael Stahl 2015-01-13 16:37:51 UTC
something was supposed to update this bug but didn't