diff options
author | Sebastian Geerken <devnull@localhost> | 2015-01-24 22:18:45 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-01-24 22:18:45 +0100 |
commit | 5f4f4955b97dc6d33e88b73128321c1a2640c11c (patch) | |
tree | 69b39cf32829e38e71f03aa5bb1cd766153451a0 | |
parent | 298312965a78e1d112b927377c079de8f9fcd200 (diff) |
Fixed redrawing problem.
-rw-r--r-- | dw/textblock.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index e7c49f27..21de1991 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -624,7 +624,9 @@ void Textblock::sizeAllocateImpl (core::Allocation *allocation) core::Allocation childAllocation; core::Allocation *oldChildAllocation; - if (allocation->width != this->allocation.width) { + if (allocation->x != this->allocation.x || + allocation->y != this->allocation.y || + allocation->width != this->allocation.width) { redrawY = 0; DBG_OBJ_SET_NUM ("redrawY", redrawY); } |