summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2016-05-29 13:30:25 +0200
committerSebastian Geerken <devnull@localhost>2016-05-29 13:30:25 +0200
commitecb465d010bab3b554ef65443a73d682494d5a8a (patch)
tree172e43c7840005675edd743049b948cdec6bdcfa
parent12bf33a4335310de0ddb16e321886e1c6093635e (diff)
Comments, cleanup.
-rw-r--r--dw/textblock.cc13
-rw-r--r--dw/textblock.hh2
2 files changed, 1 insertions, 14 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 8a2041fe..8a1183de 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -463,19 +463,6 @@ void Textblock::getExtremesSimpl (core::Extremes *extremes)
{
DBG_OBJ_ENTER0 ("resize", 0, "getExtremesSimpl");
- // TODO Can extremes depend on the available width? Should not; if
- // they do, the following code must be reactivated, but it causes
- // an endless recursion.
-#if 0
- int newLineBreakWidth = getAvailWidth (true);
- if (newLineBreakWidth != lineBreakWidth) {
- lineBreakWidth = newLineBreakWidth;
- wrapRefParagraphs = 0;
- DBG_OBJ_SET_NUM ("lineBreakWidth", lineBreakWidth);
- DBG_OBJ_SET_NUM ("wrapRefParagraphs", wrapRefLines);
- }
-#endif
-
fillParagraphs ();
if (paragraphs->size () == 0) {
diff --git a/dw/textblock.hh b/dw/textblock.hh
index 8e9fb4e2..fd92b636 100644
--- a/dw/textblock.hh
+++ b/dw/textblock.hh
@@ -576,7 +576,7 @@ protected:
core::SizeParams sizeRequestParams;
- /* This value is currently) set by setAscent(). */
+ /* Stores the value of getAvailWidth(). */
int lineBreakWidth;
int wrapRefLines, wrapRefParagraphs; /* 0-based. Important: Both