default export image name for not-saved drawings

Bug #170295 reported by Artemiopabla
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Wishlist
jazzynico

Bug Description

Currently, if you start up Inkscape, draw something, and
fire up an export dialogue without saving the drawing
first, you get a blank "export to" path.

I think it should be set to $HOME/drawing.png or
$LASTWORKDIR/drawing.png in the same fashion the
saving path turns to drawing.svg.

Revision history for this message
Ted Gould (ted) wrote :

This was fixed for 0.39 (should be fixed in CVS too! :)

Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Actually no, it's not fixed. It provides default for
selection export, but not for drawing or page.

Changed in inkscape:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced again on Windows XP (32bit) with Inkscape trunk rev. 14355.
The Filename field in the Export PNG Image dialog is blank if called with no object selected.
When an object is selected, the filename is automatically set to %USERPROFILE%\<objectID>.png (e.g. on XP, C:\Documents and Settings\testuser\rect3380.png).

Changed in inkscape:
status: Confirmed → Triaged
jazzynico (jazzynico)
Changed in inkscape:
assignee: Jon A. Cruz (jon-joncruz) → jazzynico (jazzynico)
milestone: none → 0.92
status: Triaged → In Progress
Revision history for this message
jazzynico (jazzynico) wrote :

The attached patch creates a default /home/user/bitmap.png filename (or a Windows equivalent) when the export dialog is called before the document is saved.
Please test.

Revision history for this message
jazzynico (jazzynico) wrote :

Patch tested on Xubuntu 15.04 and committed rev. 14357.

Changed in inkscape:
status: In Progress → Fix Committed
su_v (suv-lp)
tags: added: backport-proposed
Revision history for this message
su_v (suv-lp) wrote :

Fix backported to 0.91.x in rev 13845.

Changed in inkscape:
milestone: 0.92 → 0.91.1
tags: added: bitmap ui
removed: backport-proposed
jazzynico (jazzynico)
Changed in inkscape:
milestone: 0.91.1 → 0.92
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.