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:
Włodzimierz Skiba
2004-12-08 17:15:06 +00:00
parent c193de847b
commit 57e7524bad

View File

@@ -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();
}; };