wxAuiManagerUpdatePerspectiveCaptions() update
This commit is contained in:
parent
636e7acc1b
commit
525f24674e
@ -24,14 +24,14 @@
|
||||
///
|
||||
/// wxExtend Version
|
||||
///
|
||||
#define wxEXTEND_VERSION 0x01050000
|
||||
#define wxEXTEND_VERSION 0x01050100
|
||||
|
||||
#define wxEXTEND_VERSION_MAJ 1
|
||||
#define wxEXTEND_VERSION_MIN 5
|
||||
#define wxEXTEND_VERSION_REV 0
|
||||
#define wxEXTEND_VERSION_REV 1
|
||||
#define wxEXTEND_VERSION_BUILD 0
|
||||
|
||||
#define wxEXTEND_VERSION_STR "1.5"
|
||||
#define wxEXTEND_VERSION_STR "1.5.1"
|
||||
#define wxEXTEND_BUILD_YEAR_STR "2016"
|
||||
|
||||
#define wxExtendVersion "15"
|
||||
|
@ -24,7 +24,6 @@
|
||||
bool WXEXTEND_API wxAuiManagerUpdatePerspectiveCaptions(wxAuiManager& mgr, wxString& perspective)
|
||||
{
|
||||
wxString input = perspective;
|
||||
wxString output;
|
||||
wxString part;
|
||||
|
||||
// check layout string version
|
||||
@ -36,8 +35,10 @@ bool WXEXTEND_API wxAuiManagerUpdatePerspectiveCaptions(wxAuiManager& mgr, wxStr
|
||||
part.Trim(false);
|
||||
if (part != wxT("layout2"))
|
||||
return false;
|
||||
output += part;
|
||||
output += wxT('|');
|
||||
|
||||
wxString result;
|
||||
result.Alloc(500);
|
||||
result = wxT('layout2|');
|
||||
|
||||
// replace escaped characters so we can
|
||||
// split up the string easily
|
||||
@ -60,8 +61,7 @@ bool WXEXTEND_API wxAuiManagerUpdatePerspectiveCaptions(wxAuiManager& mgr, wxStr
|
||||
|
||||
if (pane_part.Left(9) == wxT("dock_size"))
|
||||
{
|
||||
output += pane_part;
|
||||
output += wxT('|');
|
||||
result += pane_part + wxT('|');
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -79,10 +79,10 @@ bool WXEXTEND_API wxAuiManagerUpdatePerspectiveCaptions(wxAuiManager& mgr, wxStr
|
||||
// Update caption.
|
||||
pane.caption = p.caption;
|
||||
|
||||
output += mgr.SavePaneInfo(pane);
|
||||
output += wxT('|');
|
||||
// Re-generate and append pane info.
|
||||
result += mgr.SavePaneInfo(pane) + wxT('|');
|
||||
}
|
||||
|
||||
perspective = output;
|
||||
perspective = result;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user