tool parameter settings are shared between multiple documents

Bug #926191 reported by Torsten Volland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Low
Unassigned

Bug Description

Inkscape-0.48.2-1-win32
OS: Windows 7 Ultimate, SP1, 64 bit

example to reproduce:
- open two documents (A and B)
- choose calligraphy tool in document A
- change width of calligraphy tool in document A
- focus document B, choose the calligraphy tool
- note that the default width is displayed
- draw something
The width used when drawing is the width set in document A.

I've observed this phenomenon for all calligraphy tool parameters as well as for the ellipse tool and the polygon tool.

For some parameters the value is updated to the used value after the drawing. In the example above the default value will be displayed still. That doesn't seem to depend on the type of control:
- Calligraphy angle control doesn't update
- Polygon number of vertices updates

Even for more than two documents the parameter value that was set last in any document will be used.

Tags: ui calligraphy
su_v (suv-lp)
tags: added: calligraphy ui
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows XP, Inkscape trunk revision 11047.

Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

Related:
Bug #426032 "Toolbar Display Settings Shared Between All Windows"
<https://bugs.launchpad.net/inkscape/+bug/426032>

Changed in inkscape:
assignee: nobody → Yevgeny Lezhnin (z-lezhnin)
Revision history for this message
Yevgeny Lezhnin (z-lezhnin) wrote :

That tool parameter settings are shared between multiple documents is not a problem. Problem is that new document's starting value for input widget is constant. That bug affects not only calligraphy tool, but many other tools. So I try to change as many as I see constant values for widgets to something like this (example for calligraphy):

Inkscape::Preferences::get()->getDouble("/tools/calligraphic/width",15.)

Changed in inkscape:
assignee: Yevgeny Lezhnin (z-lezhnin) → nobody
Revision history for this message
Yevgeny Lezhnin (z-lezhnin) wrote :

this works only for first use of the toolbar element. Best solution for this problem is a creation of the different variables for each document.

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.