Bug 60825

Summary: Spurious values in Draw bitmap export dialog fields after export resolution change
Product: LibreOffice Reporter: Steven Kirk <stevenrkirk>
Component: DrawingAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: fridrich.strba
Version: 4.0.0.3 release   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Draw document used to replicate the export bug

Description Steven Kirk 2013-02-14 07:12:47 UTC
Created attachment 74794 [details]
Draw document used to replicate the export bug

Problem encountered with 4.0.0.3, Win 7 Home Premium.
Tried to export a whole page from Draw (see attached document, containing a single JPEG file inserted as a Picture). Selected PNG output format (aside: bug also appears when using BMP as output format). On first appearance, bitmap output dialog shows resolution as 96 pixels per inch. 
I edited the resolution field to 300 pixels per inch, and the other two fields updated as expected. I then tried to edit the width and height fields to width 210 mm and height 297 mm (in order to export the whole page). These two fields did not respond correctly to editing (using delete, backspace and keyboard, or by pasting values from clipboard), inserting spurious values (e.g. 999.99). Attempting to retype the values in these fields failed to resolve the problem.

Finally worked around the problem by: on entry, leaving the width and height fields alone, but pasting the text value '300' into the resolution field from clipboard (typed and copied from another text editor) to the resolution field with the listbox set to 'pixels/inch'.

It appears that if recalculation of the values in the width and height fields is done after adjusting the resolution, it is not possible to correctly edit the resulting width and height fields.
Comment 1 Steven Kirk 2013-02-14 07:18:40 UTC
Original process seems to work OK with 4.0.0.3 on Win 8, except that manually editing the width and height values still occasionally inserts spurious digits, which fortunately can be edited out.
Comment 2 Steven Kirk 2013-02-14 07:21:19 UTC
Odd that pasting '300' into the resolution field worked, but typing it in didn't.
Comment 3 A (Andy) 2013-03-29 23:07:54 UTC
reproducible with LO 4.0.1.2 (Win7 Home, 64bit)

@Fridrich: Could this issue maybe be something for you?

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.