Fixed bug with lack of return default style if Ok() fails.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -267,7 +267,7 @@ public:
|
|||||||
/** Returns the currently used caption style for the wxFoldPanel. It is returned as a wxCaptionBarStyle class.
|
/** Returns the currently used caption style for the wxFoldPanel. It is returned as a wxCaptionBarStyle class.
|
||||||
after modifying it, it can be set again */
|
after modifying it, it can be set again */
|
||||||
wxCaptionBarStyle GetCaptionStyle(wxFoldPanel &fp) const {
|
wxCaptionBarStyle GetCaptionStyle(wxFoldPanel &fp) const {
|
||||||
wxCHECK2(fp.IsOk(), wxEmptyCaptionBarStyle);
|
wxCHECK2(fp.IsOk(), return wxEmptyCaptionBarStyle);
|
||||||
return fp.GetItem()->GetCaptionStyle();
|
return fp.GetItem()->GetCaptionStyle();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user