textbox: fix box width in round corners mode

Origin commit data
------------------
Commit: 002277fb5f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-28 (Fri, 28 Oct 2016)

Origin message was:
------------------
- textbox: fix box width in round corners mode
This commit is contained in:
vanhofen
2016-10-28 09:55:40 +02:00
parent 7764cfac0a
commit 96a73691a7

View File

@@ -587,7 +587,7 @@ void CTextBox::refreshText(void)
//bg variables
int ax = m_cFrameTextRel.iX+m_cFrame.iX;
int ay = m_cFrameTextRel.iY+m_cFrame.iY;
int dx = m_old_cText != m_cText || m_nNrOfPages>1 ? m_cFrameTextRel.iWidth : m_nMaxTextWidth;
int dx = m_old_cText != m_cText || m_nNrOfPages>1 ? m_cFrameTextRel.iWidth : m_nMaxTextWidth - m_nBgRadius;
int dy = m_cFrameTextRel.iHeight;
//avoid artefacts in transparent cornes