]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/textctrl.cpp
added live resizing
[wxWidgets.git] / src / mac / textctrl.cpp
index a599a624e3fbda430937b5f653489f7589d19e0d..183c86981c919257767f1213a242fde3dad3f4af 100644 (file)
@@ -426,7 +426,7 @@ static pascal ControlPartCode TPPaneFocusProc(ControlHandle theControl, ControlF
         /* set up locals */
     focusResult = kControlFocusNoPart;
     tpvars = (STPTextPaneVars **) GetControlReference(theControl);
-    if (tpvars != NULL) {
+    if (tpvars != NULL && IsControlVisible( theControl ) ) {
         state = HGetState((Handle) tpvars);
         HLock((Handle) tpvars);
         varsp = *tpvars;