diff options
| author | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-07-09 16:40:49 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-07-09 16:40:49 +0000 |
| commit | eed38c52370d904571447d0bcf19857be91059c0 (patch) | |
| tree | 1d42b837f9ea0635ae79ca927a0d8255ed5fd269 /src/widgets/select-toolbar.cpp | |
| parent | Fix make check (diff) | |
| parent | Add signals to ToggleButton; more coding style (diff) | |
| download | inkscape-eed38c52370d904571447d0bcf19857be91059c0.tar.gz inkscape-eed38c52370d904571447d0bcf19857be91059c0.zip | |
Update to experimental r13428
(bzr r13090.1.89)
Diffstat (limited to 'src/widgets/select-toolbar.cpp')
| -rw-r--r-- | src/widgets/select-toolbar.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/select-toolbar.cpp b/src/widgets/select-toolbar.cpp index 284e436bf..d45fb7e4d 100644 --- a/src/widgets/select-toolbar.cpp +++ b/src/widgets/select-toolbar.cpp @@ -73,6 +73,7 @@ sp_selection_layout_widget_update(SPWidget *spw, Inkscape::Selection *sel) if ( bbox ) { UnitTracker *tracker = reinterpret_cast<UnitTracker*>(g_object_get_data(G_OBJECT(spw), "tracker")); Unit const *unit = tracker->getActiveUnit(); + g_return_if_fail(unit != NULL); struct { char const *key; double val; } const keyval[] = { { "X", bbox->min()[X] }, @@ -178,6 +179,7 @@ sp_object_layout_any_value_changed(GtkAdjustment *adj, SPWidget *spw) gdouble xrel = 0; gdouble yrel = 0; Unit const *unit = tracker->getActiveUnit(); + g_return_if_fail(unit != NULL); GtkAdjustment* a_x = GTK_ADJUSTMENT( g_object_get_data( G_OBJECT(spw), "X" ) ); GtkAdjustment* a_y = GTK_ADJUSTMENT( g_object_get_data( G_OBJECT(spw), "Y" ) ); |
