summaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2016-05-29 22:53:44 +0200
committerSebastian Geerken <devnull@localhost>2016-05-29 22:53:44 +0200
commita62ef36887e74113add210f180f10b85ea8cbc50 (patch)
treee81f4b0cf5376803f62a46d1d2b0ca0f5d482c2b /dw/textblock.cc
parent89020950821028ad0836da9e919259c12e40acff (diff)
Comment.
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r--dw/textblock.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 3b0e14cf..4fe19fdd 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -316,7 +316,9 @@ void Textblock::sizeRequestImpl (core::Requisition *requisition, int numPos,
//
// (The latter is a simplification: an over-correct implementation would test
// all OOFMs on whether affectsLeftBorder() or affectsRightBorder() returns
- // true.)
+ // true. Also, this may be optimized by distinguishing between floats
+ // generated by this textblock (which would not make rewrapping necessary)
+ // and floats generated by other textblocks (which would).)
int newLineBreakWidth = getAvailWidth (true);
int newFCX, newFCY;