summaryrefslogtreecommitdiffstats
path: root/src/print.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2017-01-24 18:11:26 +0000
committerjabiertxof <info@marker.es>2017-01-24 18:11:26 +0000
commit176b68d76f6b684b4bf0797e1d132e8377bddab0 (patch)
treeb1918157cb8d5ada5bb76a0fd98b2433d2dd476d /src/print.cpp
parentFix a translation bug in rotate copies LPE (diff)
parentPut namespace as constant (diff)
downloadinkscape-176b68d76f6b684b4bf0797e1d132e8377bddab0.tar.gz
inkscape-176b68d76f6b684b4bf0797e1d132e8377bddab0.zip
merge lp:~inkscape.dev/inkscape/doc_rotate
(bzr r15444)
Diffstat (limited to 'src/print.cpp')
-rw-r--r--src/print.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/print.cpp b/src/print.cpp
index 7cd05ac93..479401995 100644
--- a/src/print.cpp
+++ b/src/print.cpp
@@ -79,6 +79,7 @@ unsigned int sp_print_text(SPPrintContext *ctx, char const *text, Geom::Point p,
void
sp_print_document(Gtk::Window& parentWindow, SPDocument *doc)
{
+ doc->getRoot()->c2p = doc->getRoot()->rotation.inverse() * doc->getRoot()->c2p;
doc->ensureUpToDate();
// Build arena
@@ -88,6 +89,7 @@ sp_print_document(Gtk::Window& parentWindow, SPDocument *doc)
Inkscape::UI::Dialog::Print printop(doc,base);
Gtk::PrintOperationResult res = printop.run(Gtk::PRINT_OPERATION_ACTION_PRINT_DIALOG, parentWindow);
(void)res; // TODO handle this
+ doc->getRoot()->c2p *= doc->getRoot()->rotation;
}
void sp_print_document_to_file(SPDocument *doc, gchar const *filename)