I noticed Ubuntu seems to make multiline textboxes default to zero height. This patch should ensure there is at least reasonable edit room (on any platform).
Index: src/plugins/compilergcc/compileroptionsdlg.cpp
===================================================================
--- src/plugins/compilergcc/compileroptionsdlg.cpp (revision 8435)
+++ src/plugins/compilergcc/compileroptionsdlg.cpp (working copy)
@@ -2777,6 +2777,11 @@
Compiler* compiler = CompilerFactory::GetCompiler(m_CurrentCompilerIdx);
wxTextEntryDialog dlg(this, wxT("List flags that will only be used during C compilation"),
wxT("C - only flags"), compiler->GetCOnlyFlags(), wxTextEntryDialogStyle|wxTE_MULTILINE|wxRESIZE_BORDER);
+ if (dlg.GetSize().GetHeight() < 220)
+ {
+ dlg.SetSize(dlg.GetPosition().x, dlg.GetPosition().y - (220 - dlg.GetSize().GetHeight()) / 2,
+ dlg.GetSize().GetWidth(), 220);
+ }
dlg.ShowModal();
wxString flags = dlg.GetValue();
flags.Replace(wxT("\n"), wxT(" "));
@@ -2795,6 +2800,11 @@
Compiler* compiler = CompilerFactory::GetCompiler(m_CurrentCompilerIdx);
wxTextEntryDialog dlg(this, wxT("List flags that will only be used during C++ compilation"),
wxT("C++ - only flags"), compiler->GetCPPOnlyFlags(), wxTextEntryDialogStyle|wxTE_MULTILINE|wxRESIZE_BORDER);
+ if (dlg.GetSize().GetHeight() < 220)
+ {
+ dlg.SetSize(dlg.GetPosition().x, dlg.GetPosition().y - (220 - dlg.GetSize().GetHeight()) / 2,
+ dlg.GetSize().GetWidth(), 220);
+ }
dlg.ShowModal();
wxString flags = dlg.GetValue();
flags.Replace(wxT("\n"), wxT(" "));
Index: src/plugins/compilergcc/resources/compilers/options_common_warnings.xml
===================================================================
--- src/plugins/compilergcc/resources/compilers/options_common_warnings.xml (revision 8435)
+++ src/plugins/compilergcc/resources/compilers/options_common_warnings.xml (working copy)
@@ -26,7 +26,7 @@
<Option name="Have g++ follow the C++11 ISO C++ language standard"
option="-std=c++11"
supersedes="-std=c++98 -std=c++0x"/>
- <Option name="zero as null pointer constant"
+ <Option name="Warn if '0' is used as a null pointer constant"
option="-Wzero-as-null-pointer-constant"/>
</if>
<Option name="Enable warnings demanded by strict ISO C and ISO C++"