summaryrefslogtreecommitdiffstats
path: root/src/file.cpp
diff options
context:
space:
mode:
authorJoel Holdsworth <joel@airwebreathe.org.uk>2007-12-22 21:06:55 +0000
committerjoelholdsworth <joelholdsworth@users.sourceforge.net>2007-12-22 21:06:55 +0000
commit9e79fe7d4b35be5c4847686c2d4babf9daa53c04 (patch)
treeddd44e2a3cba329dc94360b6be9d0280d6160b32 /src/file.cpp
parentFix typo in an array causing a write off the end. Causes bug if no (diff)
downloadinkscape-9e79fe7d4b35be5c4847686c2d4babf9daa53c04.tar.gz
inkscape-9e79fe7d4b35be5c4847686c2d4babf9daa53c04.zip
Fixed the parenting of the print dialog so that it cannot fall behind the main inkscape desktop window
(bzr r4278)
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/file.cpp b/src/file.cpp
index 904ff9323..9b5f39312 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -1375,11 +1375,11 @@ sp_file_import_from_ocal(Gtk::Window &parentWindow)
* Print the current document, if any.
*/
void
-sp_file_print()
+sp_file_print(Gtk::Window& parentWindow)
{
SPDocument *doc = SP_ACTIVE_DOCUMENT;
if (doc)
- sp_print_document(doc, FALSE);
+ sp_print_document(parentWindow, doc, FALSE);
}
@@ -1388,11 +1388,11 @@ sp_file_print()
* the machine's print drivers.
*/
void
-sp_file_print_direct()
+sp_file_print_direct(Gtk::Window& parentWindow)
{
SPDocument *doc = SP_ACTIVE_DOCUMENT;
if (doc)
- sp_print_document(doc, TRUE);
+ sp_print_document(parentWindow, doc, TRUE);
}