Revision #15307 fixes bug #1740146, in which changes in the document-properties dialog are written to the wrong document when multiple documents are open.
In registered-widget.cpp, we used to have
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. 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? - have a mechanism to notify the class of changes in the focus and update "repr" accordingly, but I don't see a reason for doing it like this.
I'm not very familiar with the GUI stuff yet, so some pointers in the right direction would be appreciated.
Diederik