diff options
Diffstat (limited to 'tx/TXLabel.h')
-rw-r--r-- | tx/TXLabel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tx/TXLabel.h b/tx/TXLabel.h index 44f70477..bbd893a5 100644 --- a/tx/TXLabel.h +++ b/tx/TXLabel.h @@ -64,8 +64,8 @@ public: int textHeight = ((defaultFS->ascent + defaultFS->descent + lineSpacing) * lines); - int newWidth = max(width(), textWidth + xPad*2); - int newHeight = max(height(), textHeight + yPad*2); + int newWidth = vncmax(width(), textWidth + xPad*2); + int newHeight = vncmax(height(), textHeight + yPad*2); if (width() < newWidth || height() < newHeight) { resize(newWidth, newHeight); } |