diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-06-27 05:41:53 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-06-27 05:41:53 +0000 |
| commit | 6f008746350aab3d895a7905e1dd036a9b615a94 (patch) | |
| tree | 736226313250bc53a193b4f4cf516f6909efcc8e /src/ui/widget | |
| parent | fix issue introduced in r14229 (diff) | |
| download | inkscape-6f008746350aab3d895a7905e1dd036a9b615a94.tar.gz inkscape-6f008746350aab3d895a7905e1dd036a9b615a94.zip | |
switch SPStyle to using SPFilterReference for filters; sp_style_new now requires an SPDocument; SPURIReference and SPFilterReference have an alternative constructor taking an owner_document instead of owner object
(bzr r3116)
Diffstat (limited to 'src/ui/widget')
| -rw-r--r-- | src/ui/widget/selected-style.cpp | 2 | ||||
| -rw-r--r-- | src/ui/widget/style-swatch.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp index 2c5da4380..fcd56ad44 100644 --- a/src/ui/widget/selected-style.cpp +++ b/src/ui/widget/selected-style.cpp @@ -863,7 +863,7 @@ SelectedStyle::update() return; // create temporary style - SPStyle *query = sp_style_new (); + SPStyle *query = sp_style_new (sp_desktop_document(_desktop)); for (int i = SS_FILL; i <= SS_STROKE; i++) { Gtk::EventBox *place = (i == SS_FILL)? &_fill_place : &_stroke_place; diff --git a/src/ui/widget/style-swatch.cpp b/src/ui/widget/style-swatch.cpp index 705083a8f..cad07fbd6 100644 --- a/src/ui/widget/style-swatch.cpp +++ b/src/ui/widget/style-swatch.cpp @@ -262,7 +262,7 @@ StyleSwatch::setStyle(SPCSSAttr *css) sp_repr_css_merge(_css, css); gchar const *css_string = sp_repr_css_write_string (_css); - SPStyle *temp_spstyle = sp_style_new(); + SPStyle *temp_spstyle = sp_style_new(SP_ACTIVE_DOCUMENT); if (css_string) sp_style_merge_from_style_string (temp_spstyle, css_string); |
