summaryrefslogtreecommitdiffstats
path: root/src/object/sp-text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/sp-text.cpp')
-rw-r--r--src/object/sp-text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object/sp-text.cpp b/src/object/sp-text.cpp
index 49052d92c..da9c2cca9 100644
--- a/src/object/sp-text.cpp
+++ b/src/object/sp-text.cpp
@@ -102,7 +102,7 @@ void SPText::set(SPAttributeEnum key, const gchar* value) {
this->style->line_height.value = this->style->line_height.computed = sp_svg_read_percentage (value, 1.0);
}
// Remove deprecated attribute
- this->getRepr()->setAttribute("sodipodi:linespacing", nullptr);
+ this->setAttribute("sodipodi:linespacing", nullptr);
this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG | SP_TEXT_LAYOUT_MODIFIED_FLAG);
break;