diff options
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/dialog/fill-and-stroke.cpp | 2 | ||||
| -rw-r--r-- | src/ui/widget/selected-style.cpp | 2 | ||||
| -rw-r--r-- | src/ui/widget/style-swatch.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/dialog/fill-and-stroke.cpp b/src/ui/dialog/fill-and-stroke.cpp index 2967cf151..fdcfc7636 100644 --- a/src/ui/dialog/fill-and-stroke.cpp +++ b/src/ui/dialog/fill-and-stroke.cpp @@ -239,7 +239,7 @@ FillAndStroke::selectionChanged(Inkscape::Application *inkscape, _blocked = true; // create temporary style - SPStyle *query = sp_style_new (); + SPStyle *query = sp_style_new (SP_ACTIVE_DOCUMENT); // query style from desktop into it. This returns a result flag and fills query with the style of subselection, if any, or selection int result = sp_desktop_query_style (SP_ACTIVE_DESKTOP, query, QUERY_STYLE_PROPERTY_MASTEROPACITY); 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); |
