consolidate duplication in selectorsdialog.cpp and styledialog.cpp
Steps to reproduce:
- Look at src/ui/dialog/styledialog.cpp
- Look at src/ui/dialog/selectorsdialog.cpp
What happened?
Lots of duplicated code, e.g.:
_getStyleTextNode
_getObjVec
-
_updateWatchers
and related methods
What should have happened?
Code duplication should be avoided.
Noticed while looking into the various "Selectors & CSS" dialog crash reports. Some bugs are in duplicated functions and would need to be fixed twice, if the code is not consolidated.
Inkscape Version and Operating System:
- Inkscape Version:
Inkscape 1.1-dev (3a9df5bcce, 2020-03-18, custom)