diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-10-17 12:09:05 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2017-10-17 12:09:05 +0000 |
| commit | 765af83f76a01ebfd7d17e1873e07a429dff1187 (patch) | |
| tree | c073c61c1e5ee8c91abf0bde85fe84ee1b873f12 /src/sp-text.cpp | |
| parent | Revive pango_win32 backend (diff) | |
| download | inkscape-765af83f76a01ebfd7d17e1873e07a429dff1187.tar.gz inkscape-765af83f76a01ebfd7d17e1873e07a429dff1187.zip | |
Remove text 'width' and 'height' attributes. These were replaced by the 'inline-size' property.
Diffstat (limited to 'src/sp-text.cpp')
| -rw-r--r-- | src/sp-text.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp index 7bc120985..3289e4b24 100644 --- a/src/sp-text.cpp +++ b/src/sp-text.cpp @@ -72,10 +72,6 @@ void SPText::build(SPDocument *doc, Inkscape::XML::Node *repr) { this->readAttr( "textLength" ); this->readAttr( "lengthAdjust" ); - // SVG 2 Auto wrapped text - this->readAttr( "width" ); - this->readAttr( "height" ); - SPItem::build(doc, repr); this->readAttr( "sodipodi:linespacing" ); // has to happen after the styles are read @@ -107,22 +103,6 @@ void SPText::set(unsigned int key, const gchar* value) { this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG | SP_TEXT_LAYOUT_MODIFIED_FLAG); break; - case SP_ATTR_WIDTH: - if (!this->width.read(value) || this->width.value < 0.0) { - this->width.unset(); - } - - this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); - break; - - case SP_ATTR_HEIGHT: - if (!this->height.read(value) || this->height.value < 0.0) { - this->height.unset(); - } - - this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); - break; - default: SPItem::set(key, value); break; @@ -284,14 +264,6 @@ Inkscape::XML::Node *SPText::write(Inkscape::XML::Document *xml_doc, Inkscape::X this->attributes.writeTo(repr); this->rebuildLayout(); // copied from update(), see LP Bug 1339305 - // SVG 2 Auto-wrapped text - if( this->width.computed > 0.0 ) { - sp_repr_set_svg_double(repr, "width", this->width.computed); - } - if( this->height.computed > 0.0 ) { - sp_repr_set_svg_double(repr, "height", this->height.computed); - } - SPItem::write(xml_doc, repr, flags); return repr; |
