summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorJoel Holdsworth <joel@airwebreathe.org.uk>2007-07-28 20:08:47 +0000
committerjoelholdsworth <joelholdsworth@users.sourceforge.net>2007-07-28 20:08:47 +0000
commit94190bd1ba0b6d885aa6695f63eb7bce2409d9b5 (patch)
tree06e51d7466cc6f85f13f7b65d00cd9e4f00f4484 /src/verbs.cpp
parent1) Changes to snapping preferences dialog (diff)
downloadinkscape-94190bd1ba0b6d885aa6695f63eb7bce2409d9b5.tar.gz
inkscape-94190bd1ba0b6d885aa6695f63eb7bce2409d9b5.zip
Modification of the parameters/return value of SPDesktop::getToplevel
(bzr r3332)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index a81157ab8..41d6fcdcc 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -792,10 +792,9 @@ FileVerb::perform(SPAction *action, void *data, void *pdata)
#endif
SPDesktop *desktop = dynamic_cast<SPDesktop*>(sp_action_get_view(action));
- Gtk::Window *parent = NULL;
- if(desktop == NULL) return;
- desktop->getToplevel((Gtk::Widget*&)parent);
- if(parent == NULL) return;
+ g_assert(desktop != NULL);
+ Gtk::Window *parent = desktop->getToplevel();
+ g_assert(parent != NULL);
switch ((long) data) {
case SP_VERB_FILE_NEW: