summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6779a77)
raw | patch | inline | side by side (parent: 6779a77)
author | nicholasbishop <nicholasbishop@users.sourceforge.net> | |
Sat, 28 Jul 2007 04:34:13 +0000 (04:34 +0000) | ||
committer | nicholasbishop <nicholasbishop@users.sourceforge.net> | |
Sat, 28 Jul 2007 04:34:13 +0000 (04:34 +0000) |
* Changed lower limit of gaussian blur to 0.01, as the value 0 makes the result blank
* Corrected a couple of sp_document_done calls
* Corrected a couple of sp_document_done calls
src/ui/dialog/filter-effects-dialog.cpp | patch | blob | history |
index 1d7d7d0026ab31d787b92df371b502e63def444a..bd834608e86e52e05c7b602b8597c8f6aa508b46 100644 (file)
@@ -480,7 +480,7 @@ void FilterEffectsDialog::FilterModifier::filter_list_button_press(GdkEventButto
}
update_selection(sel);
- sp_document_maybe_done(doc, "fillstroke:blur", SP_VERB_DIALOG_FILL_STROKE, _("Change blur"));
+ sp_document_done(doc, SP_VERB_DIALOG_FILTER_EFFECTS, _("Apply filter"));
}
}
_settings->add(SP_ATTR_BIAS, _("Bias"), -10, 10, 1, 0.01, 1);
_settings->type(NR_FILTER_GAUSSIANBLUR);
- _settings->add(SP_ATTR_STDDEVIATION, _("Standard Deviation X"), _("Standard Deviation Y"), 0, 100, 1, 0.01, 1);
+ _settings->add(SP_ATTR_STDDEVIATION, _("Standard Deviation X"), _("Standard Deviation Y"), 0.01, 100, 1, 0.01, 1);
_settings->type(NR_FILTER_OFFSET);
_settings->add(SP_ATTR_DX, _("Delta X"), -100, 100, 1, 0.01, 1);
@@ -1284,10 +1284,14 @@ void FilterEffectsDialog::set_attr(const SPAttributeEnum attr, const gchar* val)
if(filter && prim) {
update_settings_sensitivity();
- SP_OBJECT_REPR(prim)->setAttribute((gchar*)sp_attribute_name(attr), val);
+ const gchar* name = (const gchar*)sp_attribute_name(attr);
+ SP_OBJECT_REPR(prim)->setAttribute(name, val);
filter->requestModified(SP_OBJECT_MODIFIED_FLAG);
- sp_document_done(filter->document, SP_VERB_DIALOG_FILTER_EFFECTS, _("Set filter primitive attribute"));
+ Glib::ustring undokey = "filtereffects:";
+ undokey += name;
+ sp_document_maybe_done(filter->document, undokey.c_str(), SP_VERB_DIALOG_FILTER_EFFECTS,
+ _("Set filter primitive attribute"));
}
}
}