CTextBox: fix return value of getMaxLineWidth()

m_nMaxLineWidth was never used


Origin commit data
------------------
Commit: f902c7a1e3
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-03 (Sun, 03 Aug 2014)
This commit is contained in:
2014-08-03 15:07:06 +02:00
committed by [CST] Focus
parent 80c6f6f813
commit fec91793d8
2 changed files with 2 additions and 3 deletions

View File

@@ -146,7 +146,6 @@ void CTextBox::initVar(void)
m_showTextFrame = 0;
m_nNrOfNewLine = 0;
m_nMaxLineWidth = 0;
m_cText = "";
m_nMode = m_old_nMode = SCROLL;

View File

@@ -139,7 +139,7 @@ class CTextBox
int m_nNrOfPages;
int m_nNrOfLines;
int m_nNrOfNewLine;
int m_nMaxLineWidth;
int m_nLinesPerPage;
int m_nCurrentLine;
int m_nCurrentPage;
@@ -193,7 +193,7 @@ class CTextBox
inline bool isPainted(void) {if( frameBuffer == NULL) return (false); else return (true);};
inline CBox getWindowsPos(void) {return(m_cFrame);};
inline int getMaxLineWidth(void) {return(m_nMaxLineWidth);};
inline int getMaxLineWidth(void) {return(m_nMaxTextWidth);};
inline int getLines(void) {return(m_nNrOfLines);};
inline int getLinesPerPage(void) {return m_nLinesPerPage;};
inline int getPages(void) {return(m_nNrOfPages);};