summaryrefslogtreecommitdiffstats
path: root/src/sp-namedview.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2014-03-13 04:45:38 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2014-03-13 04:45:38 +0000
commite7a3f5b74d1f5a95390ee95b06371d184c1812f7 (patch)
tree78f665a8013ebba1d57b3114744734730e4fa8b4 /src/sp-namedview.cpp
parentRender zero-width PDF lines as 1px lines compensated for current transform. (diff)
downloadinkscape-e7a3f5b74d1f5a95390ee95b06371d184c1812f7.tar.gz
inkscape-e7a3f5b74d1f5a95390ee95b06371d184c1812f7.zip
Provide a toggle in the document properties to optionally turn off
antialiasing for display and export. Fixes a nearly 10 year old bug #170356 Fixed bugs: - https://launchpad.net/bugs/170356 (bzr r13144)
Diffstat (limited to 'src/sp-namedview.cpp')
-rw-r--r--src/sp-namedview.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sp-namedview.cpp b/src/sp-namedview.cpp
index a01ba891e..03c124117 100644
--- a/src/sp-namedview.cpp
+++ b/src/sp-namedview.cpp
@@ -90,6 +90,7 @@ SPNamedView::SPNamedView() : SPObjectGroup(), snap_manager(this) {
this->grids_visible = false;
this->showborder = TRUE;
this->showpageshadow = TRUE;
+ this->antialiasing = TRUE;
this->guides = NULL;
this->viewcount = 0;
@@ -248,6 +249,7 @@ void SPNamedView::build(SPDocument *document, Inkscape::XML::Node *repr) {
this->readAttr( "inkscape:snap-page" );
this->readAttr( "inkscape:current-layer" );
this->readAttr( "inkscape:connector-spacing" );
+ this->readAttr( "inkscape:antialiasing" );
/* Construct guideline list */
for (SPObject *o = this->firstChild() ; o; o = o->getNext() ) {
@@ -603,6 +605,10 @@ void SPNamedView::set(unsigned int key, const gchar* value) {
this->requestModified(SP_OBJECT_MODIFIED_FLAG);
break;
}
+ case SP_ATTR_INKSCAPE_ANTIALIASING:
+ this->antialiasing = value ? sp_str_to_bool(value) : TRUE;
+ this->requestModified(SP_OBJECT_MODIFIED_FLAG);
+ break;
default:
SPObjectGroup::set(key, value);
break;