6 Jul
2007
6 Jul
'07
3:09 p.m.
On 7/6/07, Diederik van Lierop <mail@...1689...> wrote:
if (!repr) repr = SP_OBJECT_REPR (sp_desktop_namedview(dt));
but this won't update "repr" when the focus has changed to another document. Just removing the if-statement did the trick, but this is also needed for the other controls.
So, does dt change when you switch windows? If so, then of course, it's perfectly OK to calculare repr from dt unconditionally.
We have two other options though:
- make "repr" a local variable instead of a class-variable. Why should
it be a class-variable after all?
No idea. Indeed it makes sense to only store and update the desktop and get everything else from it.
--
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org