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()


Origin commit data
------------------
Branch: ni/coolstream
Commit: 28904b79c7
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-25 (Tue, 25 Sep 2012)



------------------
This commit was generated by Migit
This commit is contained in:
2012-09-25 15:32:33 +02:00
parent 53b6f0fe84
commit 1054f03ad5
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;