]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/slider.cpp
avoid assigning 64 bit ints to a 16 bit one
[wxWidgets.git] / src / mac / carbon / slider.cpp
index 3a12b890081c0b40eea8b12488ebab18a08f9fbe..bdde387534e07a6c2b3cec60ed4dfed211ce838a 100644 (file)
@@ -84,7 +84,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
             }
     };
 
-    wxASSERT_MSG( !(style & wxSL_VERTICAL) | !(style & wxSL_HORIZONTAL),
+    wxASSERT_MSG( !(style & wxSL_VERTICAL) || !(style & wxSL_HORIZONTAL),
         _T("incompatible slider direction and orientation") );
 
     if ( !wxControl::Create(parent, id, pos, size, style, validator, name) )
@@ -365,7 +365,7 @@ wxSize wxSlider::DoGetBestSize() const
             textwidth = maxtwidth;
         }
         else {
-            textwidth = mintwidth; 
+            textwidth = mintwidth;
         }
     }
 
@@ -421,7 +421,7 @@ void wxSlider::DoSetSize(int x, int y, int w, int h, int sizeFlags)
         GetTextExtent(text, &minValWidth, &textheight);
         text.Printf(wxT("%d"), ValueInvertOrNot( m_rangeMax ) );
         GetTextExtent(text, &maxValWidth, &ht);
+
         if(ht > textheight) {
             textheight = ht;
         }