#BUGFIX by exept
authorClaus Gittinger <cg@exept.de>
Sun, 19 Jan 2020 17:42:08 +0100
changeset 6802 b6d0911d51e7
parent 6801 15d100b9b7ed
child 6803 ee24f1bc43ae
#BUGFIX by exept class: EditTextViewCompletionSupport changed: #adjustSizeOfCompletionView:
EditTextViewCompletionSupport.st
--- a/EditTextViewCompletionSupport.st	Sun Jan 19 14:37:47 2020 +0100
+++ b/EditTextViewCompletionSupport.st	Sun Jan 19 17:42:08 2020 +0100
@@ -414,6 +414,11 @@
      textCursorPosInTextView textCursorPosOnScreen 
      newX newY cursorX cursorY distanceFromCursorIfBelow distanceFromCursorIfAbove|
 
+    editView xOfCursor isNil ifTrue:[ 
+        "/ oops - no cursor shown???
+        ^ self
+    ].
+
     textCursorPosInTextView := editView xOfCursor @ editView yOfCursor.
     textCursorPosOnScreen := editView device 
                     translatePoint:textCursorPosInTextView