]> git.lyx.org Git - lyx.git/blobdiff - src/Row.cpp
tex2lyx/text.cpp: bring back a comment as discussed
[lyx.git] / src / Row.cpp
index d1f589c9ffdfc1c6e7a730c070377751a40d847a..7052aa025cbeb24bfb5bf5d48af0ebc7d74e3048 100644 (file)
@@ -383,7 +383,7 @@ void Row::shortenIfNeeded(pos_type const keep, int const w)
                // We have found a suitable separator. This is the
                // common case.
                end_ = last_sep->endpos;
-               dim_.wid = last_width;
+               dim_.wid = int(last_width);
                elements_.erase(last_sep, end);
                return;
        }
@@ -405,7 +405,7 @@ void Row::shortenIfNeeded(pos_type const keep, int const w)
                // There is no separator, but several elements (probably
                // insets) have been added. We can cut at this place.
                end_ = cit->pos;
-               dim_.wid = wid;
+               dim_.wid = int(wid);
                elements_.erase(cit, end);
                return;
        }