diff --git a/src/gui/components/cc.h b/src/gui/components/cc.h index 9a8f89ddf..8fee53eea 100644 --- a/src/gui/components/cc.h +++ b/src/gui/components/cc.h @@ -202,7 +202,8 @@ class CComponentsText : public CComponentsItem virtual void setText(neutrino_locale_t locale_text, const int mode = ~CTextBox::AUTO_WIDTH, Font* font_text = NULL); virtual void removeLineBreaks(std::string& str); - CTextBox* getCCItemTextBoxInst() { return ct_textbox; }; + //get a Text Box object, so it's possible to get access directly to its methods + CTextBox* getCTextBoxObject() { return ct_textbox; }; }; class CComponentsLabel : public CComponentsText diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index 5d450cb6f..021539e68 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -290,7 +290,7 @@ void CImageInfo::ScrollLic(bool scrollDown) { if (cc_lic && (cc_lic->cctext)) { //get the textbox instance from infobox object and use CTexBbox scroll methods - CTextBox* ctb = cc_lic->cctext->getCCItemTextBoxInst(); + CTextBox* ctb = cc_lic->cctext->getCTextBoxObject(); if (ctb) { ctb->enableBackgroundPaint(true); if (scrollDown)