From 1f0cfd8eb9bbb24864bb2d9010f9c11286e9f845 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Mon, 23 Jan 2006 11:01:27 +0000 Subject: change direction of content to left aligned when length of text is zero --- lib/gui/elistboxcontent.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/gui/elistboxcontent.cpp') diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index 1866d3ad..8b0fe14d 100644 --- a/lib/gui/elistboxcontent.cpp +++ b/lib/gui/elistboxcontent.cpp @@ -491,7 +491,10 @@ void eListboxPythonConfigContent::paint(gPainter &painter, eWindowStyle &style, ePtr para = new eTextPara(eRect(offset + eSize(m_seperation, 0), item_right)); para->setFont(fnt2); para->renderString(text, 0); - para->realign(eTextPara::dirRight); + if (strlen(text) != 0) + para->realign(eTextPara::dirRight); + else + para->realign(eTextPara::dirLeft); int glyphs = para->size(); PyObject *plist = 0; -- cgit v1.2.3