ComponentsInfoBox: arange text to the left border if no picture is painted

changed isPainted() to isPicPainted(), return of isPicPainted() value was
not marked-down to false and isPainted() means the container frame and
isPicPainted() means the picture itself, so the last state was wrong. Now
it should work fine.

Btw: scope of x_text reduced, is only required in member paintText()
This commit is contained in:
2012-09-25 15:32:33 +02:00
parent 51891e0ccb
commit 28904b79c7
2 changed files with 7 additions and 5 deletions

View File

@@ -222,7 +222,7 @@ class CComponentsInfoBox : public CComponentsContainer
private:
const char* text;
int text_mode; //see textbox.h for possible modes
int x_text, x_offset;
int x_offset;
Font* font;
CBox * box;
CTextBox * textbox;