diff options
| author | Joel Holdsworth <joel@airwebreathe.org.uk> | 2007-07-28 20:08:47 +0000 |
|---|---|---|
| committer | joelholdsworth <joelholdsworth@users.sourceforge.net> | 2007-07-28 20:08:47 +0000 |
| commit | 94190bd1ba0b6d885aa6695f63eb7bce2409d9b5 (patch) | |
| tree | 06e51d7466cc6f85f13f7b65d00cd9e4f00f4484 /src/verbs.cpp | |
| parent | 1) Changes to snapping preferences dialog (diff) | |
| download | inkscape-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.cpp | 7 |
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: |
