From 672ae3fdb1f911094db5e15111b262ac269710da Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 17 Jul 2015 17:07:14 +0200 Subject: [PATCH] CTextBox: fix calculated but not used parameter --- src/gui/widget/textbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/textbox.cpp b/src/gui/widget/textbox.cpp index a507ef8df..3baff52ce 100644 --- a/src/gui/widget/textbox.cpp +++ b/src/gui/widget/textbox.cpp @@ -640,7 +640,7 @@ void CTextBox::refreshText(void) { //calculate centered xpos if( m_nMode & CENTER ){ - x_center = ((m_cFrameTextRel.iWidth - m_pcFontText->getRenderWidth(m_cLineArray[i]))>>1, m_utf8_encoded) - text_Hborder_width; + x_center = ((m_cFrameTextRel.iWidth - m_pcFontText->getRenderWidth(m_cLineArray[i], m_utf8_encoded))>>1) - text_Hborder_width; } else if ( m_nMode & RIGHT ){ x_center = ((m_cFrameTextRel.iWidth - m_pcFontText->getRenderWidth(m_cLineArray[i]), m_utf8_encoded) - text_Hborder_width*2);