Code

a better truncation detection, suggested by Richard Hughes
[inkscape.git] / src / libnrtype / Layout-TNG-Compute.cpp
index 7a2924d985d294196e10481e188f1257d7a174f5..f6b9688bb17ca6659b97a54be8239a73b9fe01a1 100644 (file)
@@ -1467,8 +1467,12 @@ bool Layout::Calculator::calculate()
     }
 
     para.free();
-    if (_scanline_maker)
+    if (_scanline_maker) {
         delete _scanline_maker;
+        _flow._input_truncated = false;
+    } else {
+        _flow._input_truncated = true;
+    }
 
     return true;
 }