diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-03-12 16:42:06 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2016-03-12 16:42:06 +0000 |
| commit | c9d12eb92288ab99118138376cf5c3b76d6a22da (patch) | |
| tree | a3eb29d01690c3b3e0fe1d0f2a647f6c4f8c9746 /src/sp-pattern.cpp | |
| parent | patch for bug 1538361, work around limits in mingw/MSVCRT (diff) | |
| download | inkscape-c9d12eb92288ab99118138376cf5c3b76d6a22da.tar.gz inkscape-c9d12eb92288ab99118138376cf5c3b76d6a22da.zip | |
Add new TTF to the logo in seamless pattern extension
Add checkboard background to the same extension
Update template to 0.01+devel
Fix a bug on SPPatern when apply a transform = Affine()
(bzr r14700)
Diffstat (limited to 'src/sp-pattern.cpp')
| -rw-r--r-- | src/sp-pattern.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sp-pattern.cpp b/src/sp-pattern.cpp index dd351a8d5..55110f3c5 100644 --- a/src/sp-pattern.cpp +++ b/src/sp-pattern.cpp @@ -390,10 +390,11 @@ const gchar *SPPattern::produce(const std::vector<Inkscape::XML::Node *> &reprs, repr->setAttribute("patternUnits", "userSpaceOnUse"); sp_repr_set_svg_double(repr, "width", bounds.dimensions()[Geom::X]); sp_repr_set_svg_double(repr, "height", bounds.dimensions()[Geom::Y]); - - Glib::ustring t = sp_svg_transform_write(transform); - repr->setAttribute("patternTransform", t); - + //TODO: Maybe is better handle it in sp_svg_transform_write + if(transform != Geom::Affine()){ + Glib::ustring t = sp_svg_transform_write(transform); + repr->setAttribute("patternTransform", t); + } defsrepr->appendChild(repr); const gchar *pat_id = repr->attribute("id"); SPObject *pat_object = document->getObjectById(pat_id); |
