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/object/sp-text.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/object/sp-text.cpp')
| -rw-r--r-- | src/object/sp-text.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object/sp-text.cpp b/src/object/sp-text.cpp index 79b1020ef..326e540c4 100644 --- a/src/object/sp-text.cpp +++ b/src/object/sp-text.cpp @@ -450,7 +450,7 @@ unsigned SPText::_buildLayoutInput(SPObject *root, Inkscape::Text::Layout::Optio // Extract out shapes (a comma separated list of urls) Glib::ustring shapeInside_value = style->shape_inside.value; std::vector<Glib::ustring> shapes_url = Glib::Regex::split_simple(" ", shapeInside_value); - for (int i=0; i<shapes_url.size(); ++i) { + for (unsigned int i=0; i<shapes_url.size(); ++i) { Glib::ustring shape_url = shapes_url.at(i); if ( shape_url.compare(0,5,"url(#") != 0 || shape_url.compare(shape_url.size()-1,1,")") != 0 ){ std::cerr << "SPText::_buildLayoutInput(): Invalid shape-inside value: " << shape_url << std::endl; @@ -694,7 +694,7 @@ Shape* SPText::_buildExclusionShape() const // Extract out shapes (a comma separated list of urls) std::vector<Glib::ustring> shapes_url = Glib::Regex::split_simple(" ", shapeSubtract_value); - for(int i=0; i<shapes_url.size(); i++) { + for(unsigned int i=0; i<shapes_url.size(); i++) { Glib::ustring shape_url = shapes_url.at(i); if ( shape_url.compare(0,5,"url(#") != 0 || shape_url.compare(shape_url.size()-1,1,")") != 0 ){ std::cerr << "SPText::_buildLayoutInput(): Invalid shape-inside value: " << shape_url << std::endl; |
