From 682888730856266e1098744edf226b9a6613730d Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 5 Oct 2016 13:33:22 +0200 Subject: [PATCH] Program title in About dialog box now limited in width to prevent excess dimensions when font is not installed --- ZRCola/ZRCola.fbp | 2 +- ZRCola/zrcolagui.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ZRCola/ZRCola.fbp b/ZRCola/ZRCola.fbp index 22444c8..b0ddd76 100644 --- a/ZRCola/ZRCola.fbp +++ b/ZRCola/ZRCola.fbp @@ -5444,7 +5444,7 @@ ZRCola 0 - + 400,-1 0 diff --git a/ZRCola/zrcolagui.cpp b/ZRCola/zrcolagui.cpp index ea4973a..cbb2ed2 100644 --- a/ZRCola/zrcolagui.cpp +++ b/ZRCola/zrcolagui.cpp @@ -869,6 +869,7 @@ wxZRColaAboutBase::wxZRColaAboutBase( wxWindow* parent, wxWindowID id, const wxS m_staticTextZRCola = new wxStaticText( this, wxID_ANY, _("ZRCola"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticTextZRCola->Wrap( -1 ); m_staticTextZRCola->SetFont( wxFont( 20, 70, 90, 90, false, wxT("ZRCola") ) ); + m_staticTextZRCola->SetMaxSize( wxSize( 400,-1 ) ); bSizerText->Add( m_staticTextZRCola, 0, wxALL|wxEXPAND, 5 );