diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-03-13 08:49:02 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-03-13 08:49:02 +0000 |
| commit | c424d555260e3b5fae3260173c6bc51d6e4d6f84 (patch) | |
| tree | 5528d6d516bffe883bdba5870959227f38913c79 /src/sp-root.cpp | |
| parent | update to trunk (diff) | |
| parent | Provide a toggle in the document properties to optionally turn off (diff) | |
| download | inkscape-c424d555260e3b5fae3260173c6bc51d6e4d6f84.tar.gz inkscape-c424d555260e3b5fae3260173c6bc51d6e4d6f84.zip | |
update to trunk
(bzr r11950.1.293)
Diffstat (limited to 'src/sp-root.cpp')
| -rw-r--r-- | src/sp-root.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sp-root.cpp b/src/sp-root.cpp index 12570e03e..12ac1bad4 100644 --- a/src/sp-root.cpp +++ b/src/sp-root.cpp @@ -25,6 +25,7 @@ #include "document.h" #include "inkscape-version.h" #include "sp-defs.h" +#include "sp-namedview.h" #include "sp-root.h" #include "display/drawing-group.h" #include "svg/stringstream.h" @@ -307,6 +308,7 @@ void SPRoot::update(SPCtx *ctx, guint flags) for (SPItemView *v = this->display; v != NULL; v = v->next) { Inkscape::DrawingGroup *g = dynamic_cast<Inkscape::DrawingGroup *>(v->arenaitem); g->setChildTransform(this->c2p); + g->setAntialiasing(sp_document_namedview(this->document, NULL)->antialiasing); } } @@ -373,6 +375,7 @@ Inkscape::DrawingItem *SPRoot::show(Inkscape::Drawing &drawing, unsigned int key if (ai) { Inkscape::DrawingGroup *g = dynamic_cast<Inkscape::DrawingGroup *>(ai); g->setChildTransform(this->c2p); + g->setAntialiasing(sp_document_namedview(this->document, NULL)->antialiasing); } return ai; @@ -391,6 +394,13 @@ const char *SPRoot::displayName() const { return "SVG"; // Do not translate } +void SPRoot::setAntialiasing(bool s) { + for (SPItemView *v = this->display; v != NULL; v = v->next) { + Inkscape::DrawingGroup *g = dynamic_cast<Inkscape::DrawingGroup *>(v->arenaitem); + g->setAntialiasing(s); + } +} + /* Local Variables: mode:c++ |
