diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-11-05 21:29:03 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-11-05 21:29:03 +0000 |
| commit | 647b3ccad1fd3b178e92341fdc92fd276a234dff (patch) | |
| tree | 8888f18c3f1455b6a182c90063a8edfbc0a96d54 /src/print.cpp | |
| parent | Change modifier to enter rotate mode from SHIFT to CONTROL (diff) | |
| download | inkscape-647b3ccad1fd3b178e92341fdc92fd276a234dff.tar.gz inkscape-647b3ccad1fd3b178e92341fdc92fd276a234dff.zip | |
Add exporters
(bzr r15142.1.32)
Diffstat (limited to 'src/print.cpp')
| -rw-r--r-- | src/print.cpp | 2 |
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) |
