diff options
| author | Tomasz Boczkowski <penginsbacon@gmail.com> | 2014-05-28 21:28:17 +0000 |
|---|---|---|
| committer | Tomasz Boczkowski <penginsbacon@gmail.com> | 2014-05-28 21:28:17 +0000 |
| commit | 4d75f1ecca2fcab4cbfec9fb84c5b1f3647dbc17 (patch) | |
| tree | b22a6e5def6be177faca885888aeda57fceba521 /src/widgets/paint-selector.cpp | |
| parent | SPPattern c++-sification: removed unused declatations and includes (diff) | |
| download | inkscape-4d75f1ecca2fcab4cbfec9fb84c5b1f3647dbc17.tar.gz inkscape-4d75f1ecca2fcab4cbfec9fb84c5b1f3647dbc17.zip | |
SPPattern c++-sification: replaced function by methods
(bzr r13341.6.21)
Diffstat (limited to 'src/widgets/paint-selector.cpp')
| -rw-r--r-- | src/widgets/paint-selector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/paint-selector.cpp b/src/widgets/paint-selector.cpp index 9466c875e..39336267b 100644 --- a/src/widgets/paint-selector.cpp +++ b/src/widgets/paint-selector.cpp @@ -803,7 +803,7 @@ ink_pattern_list_get (SPDocument *source) GSList *pl = NULL; GSList const *patterns = source->getResourceList("pattern"); for (GSList *l = const_cast<GSList *>(patterns); l != NULL; l = l->next) { - if (SP_PATTERN(l->data) == pattern_getroot(SP_PATTERN(l->data))) { // only if this is a root pattern + if (SP_PATTERN(l->data) == SP_PATTERN(l->data)->get_root()) { // only if this is a root pattern pl = g_slist_prepend(pl, l->data); } } @@ -1123,7 +1123,7 @@ SPPattern *SPPaintSelector::getPattern() } g_free(paturn); } else { - pat = pattern_getroot(SP_PATTERN(patid)); + pat = SP_PATTERN(patid)->get_root(); } if (pat && !SP_IS_PATTERN(pat)) { |
