X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b88ccc4e8e2f933f2db3072757bbdce815578072..4cbcfb73a037462ccf4d54b3e50c58e37cc61aa9:/src/gtk1/statbox.cpp diff --git a/src/gtk1/statbox.cpp b/src/gtk1/statbox.cpp index d057ebbd4c..1cdcca5073 100644 --- a/src/gtk1/statbox.cpp +++ b/src/gtk1/statbox.cpp @@ -7,10 +7,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "statbox.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -77,8 +73,8 @@ bool wxStaticBox::Create( wxWindow *parent, else // wxALIGN_LEFT xalign = 0.0; - if ( xalign ) - gtk_frame_set_label_align(GTK_FRAME( m_widget ), xalign, 0.0); + if ( style & (wxALIGN_RIGHT | wxALIGN_CENTER) ) // left alignment is default + gtk_frame_set_label_align(GTK_FRAME( m_widget ), xalign, 0.5); return TRUE; }