]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/textctrl.cpp
Don't scroll the grid when starting a cell editor if it will already
[wxWidgets.git] / src / univ / textctrl.cpp
index 1d7c6567d9d4d7e720b72d21af9e46c20b120eb0..3559305bc5212f3727ad71471ea109a2c8d12fc9 100644 (file)
@@ -2683,7 +2683,7 @@ size_t wxTextCtrl::GetPartOfWrappedLine(const wxChar* text,
                 //else: we can just see it
 
                 // wrap at any character or only at words boundaries?
-                if ( !(GetWindowStyle() & wxTE_LINEWRAP) )
+                if ( !(GetWindowStyle() & wxTE_CHARWRAP) )
                 {
                     // find the (last) not word char before this word
                     wxTextCoord colWordStart;
@@ -4259,7 +4259,7 @@ void wxTextCtrl::CreateCaret()
         // FIXME use renderer
         caret = new wxCaret(this, 1, GetLineHeight());
 #ifndef __WXMSW__
-        caret->SetBlinkTime(0);
+        wxCaret::SetBlinkTime(0);
 #endif // __WXMSW__
     }
     else