diff options
| author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-05-20 02:38:27 +0000 |
|---|---|---|
| committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-05-20 20:05:07 +0000 |
| commit | 4912a5fc252028a20fd430b9c6b34fc25df7e818 (patch) | |
| tree | bade2b8f3546eaa5cec63bddcead5dce191ff163 /src/ui/dialog/document-properties.cpp | |
| parent | Fis maren improvements to embed/import (diff) | |
| download | inkscape-4912a5fc252028a20fd430b9c6b34fc25df7e818.tar.gz inkscape-4912a5fc252028a20fd430b9c6b34fc25df7e818.zip | |
DocumentProperties: Fix undefined references without lcms
Inkscape::UI::Dialog::DocumentProperties::create_guides_around_page()
and Inkscape::UI::Dialog::DocumentProperties::delete_all_guides() are
unconditionally referenced but were defined only if either HAVE_LIBLCMS1
or HAVE_LIBLCMS2 is defined.
Diffstat (limited to 'src/ui/dialog/document-properties.cpp')
| -rw-r--r-- | src/ui/dialog/document-properties.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp index 96835c65b..7b1025e2b 100644 --- a/src/ui/dialog/document-properties.cpp +++ b/src/ui/dialog/document-properties.cpp @@ -410,6 +410,30 @@ void DocumentProperties::build_snap() attach_all(_page_snap->table(), array, G_N_ELEMENTS(array)); } +void DocumentProperties::create_guides_around_page() +{ + SPDesktop *dt = getDesktop(); + Verb *verb = Verb::get( SP_VERB_EDIT_GUIDES_AROUND_PAGE ); + if (verb) { + SPAction *action = verb->get_action(Inkscape::ActionContext(dt)); + if (action) { + sp_action_perform(action, NULL); + } + } +} + +void DocumentProperties::delete_all_guides() +{ + SPDesktop *dt = getDesktop(); + Verb *verb = Verb::get( SP_VERB_EDIT_DELETE_ALL_GUIDES ); + if (verb) { + SPAction *action = verb->get_action(Inkscape::ActionContext(dt)); + if (action) { + sp_action_perform(action, NULL); + } + } +} + #if defined(HAVE_LIBLCMS1) || defined(HAVE_LIBLCMS2) /// Populates the available color profiles combo box void DocumentProperties::populate_available_profiles(){ @@ -472,30 +496,6 @@ static void sanitizeName( Glib::ustring& str ) } } -void DocumentProperties::create_guides_around_page() -{ - SPDesktop *dt = getDesktop(); - Verb *verb = Verb::get( SP_VERB_EDIT_GUIDES_AROUND_PAGE ); - if (verb) { - SPAction *action = verb->get_action(Inkscape::ActionContext(dt)); - if (action) { - sp_action_perform(action, NULL); - } - } -} - -void DocumentProperties::delete_all_guides() -{ - SPDesktop *dt = getDesktop(); - Verb *verb = Verb::get( SP_VERB_EDIT_DELETE_ALL_GUIDES ); - if (verb) { - SPAction *action = verb->get_action(Inkscape::ActionContext(dt)); - if (action) { - sp_action_perform(action, NULL); - } - } -} - /// Links the selected color profile in the combo box to the document void DocumentProperties::linkSelectedProfile() { |
