]> git.lyx.org Git - lyx.git/blobdiff - src/Row.h
Fix horizontal scrolling in full-width collapsable insets
[lyx.git] / src / Row.h
index e03e4c9e9dff4f36eeb3d24385cfff2187822dcd..f0c5b72ca1125aaef0c6ee784c7747ac0866fb4c 100644 (file)
--- a/src/Row.h
+++ b/src/Row.h
@@ -227,8 +227,9 @@ public:
         * remains is a large word, cut it to \param width.
         * \param body_pos minimum amount of text to keep.
         * \param width maximum width of the row
+        * \return true if the row has been shortened.
         */
-       void shortenIfNeeded(pos_type const body_pos, int const width);
+       bool shortenIfNeeded(pos_type const body_pos, int const width);
 
        /**
         * If last element of the row is a string, compute its width