diff --git a/src/dlangui/widgets/controls.d b/src/dlangui/widgets/controls.d index 82968d80..b31a6a56 100644 --- a/src/dlangui/widgets/controls.d +++ b/src/dlangui/widgets/controls.d @@ -134,11 +134,11 @@ class TextWidget : Widget { applyAlign(rc, sz); font.drawText(buf, rc.left, rc.top, text, textColor, 4, 0, textFlags); } else { - SimpleTextFormatter fmt; - Point sz = fmt.format(text, font, maxLines, rc.width, 4, 0, textFlags); + SimpleTextFormatter fmt; + Point sz = fmt.format(text, font, maxLines, rc.width, 4, 0, textFlags); applyAlign(rc, sz); // TODO: apply align to alignment lines - fmt.draw(buf, rc.left, rc.top, font, textColor); + fmt.draw(buf, rc.left, rc.top, font, textColor); } } } @@ -178,10 +178,10 @@ class ImageWidget : Widget { @property string drawableId() { return _drawableId; } /// set drawable image id @property ImageWidget drawableId(string id) { - _drawableId = id; + _drawableId = id; _drawable.clear(); requestLayout(); - return this; + return this; } /// get drawable @property ref DrawableRef drawable() {