diff options
| author | Felipe CorrĂȘa da Silva Sanches <juca@members.fsf.org> | 2018-03-27 20:57:32 +0000 |
|---|---|---|
| committer | Felipe CorrĂȘa da Silva Sanches <juca@members.fsf.org> | 2018-03-27 20:58:51 +0000 |
| commit | a679bb93e87a142a4cfa2720881bd033d570bebb (patch) | |
| tree | 291650706054e23166970c7e7d03c61523822543 /src/ui/dialog/font-substitution.cpp | |
| parent | Convert Pango font variations string to CSS format before saving to CSS. (diff) | |
| download | inkscape-a679bb93e87a142a4cfa2720881bd033d570bebb.tar.gz inkscape-a679bb93e87a142a4cfa2720881bd033d570bebb.zip | |
a few more fixes to build warnings related to libnrtype
Diffstat (limited to 'src/ui/dialog/font-substitution.cpp')
| -rw-r--r-- | src/ui/dialog/font-substitution.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui/dialog/font-substitution.cpp b/src/ui/dialog/font-substitution.cpp index a07a7b7b3..da7d14d9c 100644 --- a/src/ui/dialog/font-substitution.cpp +++ b/src/ui/dialog/font-substitution.cpp @@ -170,11 +170,9 @@ std::vector<SPItem*> FontSubstitution::getFontReplacedItems(SPDocument* doc, Gli if (parent_text != NULL) { family = SP_TEXT(parent_text)->layout.getFontFamily(0); // Add all the spans fonts to the set - gint ii = 0; - for (auto& child: parent_text->children) { - family = SP_TEXT(parent_text)->layout.getFontFamily(ii); + for (unsigned int f=0; f < parent_text->children.size(); f++) { + family = SP_TEXT(parent_text)->layout.getFontFamily(f); setFontSpans.insert(family); - ii++; } } } |
