summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 463eeb2)
raw | patch | inline | side by side (parent: 463eeb2)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 6 Feb 2006 02:06:27 +0000 (02:06 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 6 Feb 2006 02:06:27 +0000 (02:06 +0000) |
src/libnrtype/Layout-TNG-Output.cpp | patch | blob | history | |
src/sp-string.cpp | patch | blob | history |
index b6249248bc90775c4ec7ce154870a77f15f94e77..bdcc6cf3f099982e83a09967a86fbb8d5b531d4f 100755 (executable)
@@ -87,11 +87,11 @@ void Layout::getBoundingBox(NRRect *bounding_box, NR::Matrix const &transform, i
{
for (unsigned glyph_index = 0 ; glyph_index < _glyphs.size() ; glyph_index++) {
if (_characters[_glyphs[glyph_index].in_character].in_glyph == -1) continue;
- if (start != -1 && _glyphs[glyph_index].in_character < start) continue;
+ if (start != -1 && (int) _glyphs[glyph_index].in_character < start) continue;
if (length != -1) {
if (start == -1)
start = 0;
- if (_glyphs[glyph_index].in_character > start + length) continue;
+ if ((int) _glyphs[glyph_index].in_character > start + length) continue;
}
// this could be faster
NRMatrix glyph_matrix;
diff --git a/src/sp-string.cpp b/src/sp-string.cpp
index d3f59291531ae7579c823316b989199a3666107a..ddea5abc7ed60bb1b0cdda4abdf8cfb5b6ef2c2b 100644 (file)
--- a/src/sp-string.cpp
+++ b/src/sp-string.cpp
sp_string_class_init(SPStringClass *classname)
{
SPObjectClass *sp_object_class;
- SPItemClass *item_class;
sp_object_class = (SPObjectClass *) classname;