]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/aboutdlgg.cpp
fix the bug with renaming groups leaving wxFileConfig in inconsistent state (closes...
[wxWidgets.git] / src / generic / aboutdlgg.cpp
index 61f0db4470fe6e2a8943bb1ebca3931e3fa8d5ce..542020e699d79b70f7c4d95e6dc3bbb2a9828dce 100644 (file)
@@ -133,14 +133,20 @@ bool wxGenericAboutDialog::Create(const wxAboutDialogInfo& info)
 #endif // wxUSE_HYPERLINKCTRL/!wxUSE_HYPERLINKCTRL
     }
 
+#if wxUSE_COLLPANE
     // add licence
-    wxCollapsiblePane *licensepnl = new wxCollapsiblePane(this, wxID_ANY, wxT("License"));
+    if ( info.HasLicence() )
+    {
+        wxCollapsiblePane *
+            licensepnl = new wxCollapsiblePane(this, wxID_ANY, wxT("License"));
 
-    new wxStaticText(licensepnl->GetPane(), wxID_ANY, info.GetLicence(),
-                     wxDefaultPosition, wxDefaultSize,
-                     wxALIGN_CENTRE);
+        new wxStaticText(licensepnl->GetPane(), wxID_ANY, info.GetLicence(),
+                         wxDefaultPosition, wxDefaultSize,
+                         wxALIGN_CENTRE);
 
-    m_sizerText->Add(licensepnl, wxSizerFlags(1).Expand().Border(wxBOTTOM));
+        m_sizerText->Add(licensepnl, wxSizerFlags(1).Expand().Border(wxBOTTOM));
+    }
+#endif // wxUSE_COLLPANE
 
     // TODO: add credits (developers, artists, doc writers, translators)