diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-10-09 01:19:42 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-10-09 01:19:42 +0000 |
| commit | 7f008cb2f657420416aef950a1576e1162c89fa4 (patch) | |
| tree | 6dad8fdecdf2af6f291b6b2dc76670d404dd5845 /src/sp-namedview.cpp | |
| parent | Update to trunk (diff) | |
| download | inkscape-7f008cb2f657420416aef950a1576e1162c89fa4.tar.gz inkscape-7f008cb2f657420416aef950a1576e1162c89fa4.zip | |
Added widget to to rotate
(bzr r15142.1.7)
Diffstat (limited to 'src/sp-namedview.cpp')
| -rw-r--r-- | src/sp-namedview.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sp-namedview.cpp b/src/sp-namedview.cpp index e44c548bd..e51d62522 100644 --- a/src/sp-namedview.cpp +++ b/src/sp-namedview.cpp @@ -416,8 +416,8 @@ void SPNamedView::set(unsigned int key, const gchar* value) { this->requestModified(SP_OBJECT_MODIFIED_FLAG); break; case SP_ATTR_INKSCAPE_DOCUMENT_ROTATION: - this->document_rotation = value ? g_ascii_strtod(value, NULL) : 0; // zero means not set - sp_namedview_set_document_rotation(document, this); + this->document_rotation = value ? g_ascii_strtod(value, NULL) : 0; + sp_namedview_set_document_rotation(this); this->requestModified(SP_OBJECT_MODIFIED_FLAG); break; case SP_ATTR_INKSCAPE_WINDOW_WIDTH: @@ -950,10 +950,9 @@ static void sp_namedview_lock_guides(SPNamedView *nv) } } -static void sp_namedview_set_document_rotation(SPDocument *doc, SPNamedView *nv) +void sp_namedview_set_document_rotation(SPNamedView *nv) { - - doc->getRoot()->set_rotation(nv->document_rotation); + nv->document->getRoot()->set_rotation(nv->document_rotation); if (nv->document_rotation) { nv->showborder = FALSE; } else { |
