diff options
| author | Soren Jorvang <soren.jorvang@gmail.com> | 2010-06-11 08:39:03 +0000 |
|---|---|---|
| committer | Soren Jorvang <soren.jorvang@gmail.com> | 2010-06-11 08:39:03 +0000 |
| commit | b7c2e523b35bca5ba0a4a361780a58aa74552bbc (patch) | |
| tree | 9550c71d7b45a1ccc149f74d9494eca594937121 /Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp | |
| parent | 0b00faa378451721301d4b0741fc754b7b281c1d (diff) | |
Treat strings from external sources as 8-bit so FromAscii doesn't barf.
Ideally we should be more character set aware, but at the moment we
use anonymous 7/8-bit strings in too many places.
Fix use of AddGrowable{Col,Row}. Any (non-zero) rows/columns must
have been created first by adding an item to it.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5648 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp b/Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp index 8d04fe8b56..146324b1f4 100644 --- a/Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp +++ b/Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp @@ -68,12 +68,12 @@ void CARCodeAddEdit::CreateGUIControls(int _selection) wxButton* bOK = new wxButton(this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator); wxButton* bCancel = new wxButton(this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator); - sgEntry->AddGrowableCol(1); - sgEntry->AddGrowableRow(1); sgEntry->Add(EditCheatNameText, wxGBPosition(0, 0), wxGBSpan(1, 1), wxALIGN_CENTER|wxALL, 5); sgEntry->Add(EditCheatName, wxGBPosition(0, 1), wxGBSpan(1, 1), wxEXPAND|wxALL, 5); sgEntry->Add(EntrySelection, wxGBPosition(0, 2), wxGBSpan(2, 1), wxEXPAND|wxALL, 5); sgEntry->Add(EditCheatCode, wxGBPosition(1, 0), wxGBSpan(1, 2), wxEXPAND|wxALL, 5); + sgEntry->AddGrowableCol(1); + sgEntry->AddGrowableRow(1); sbEntry->Add(sgEntry, 1, wxEXPAND|wxALL); sEditCheatButtons->AddStretchSpacer(); |
