seanyeh / vibreoffice

Vi Mode for LibreOffice/OpenOffice
390 stars 34 forks source link

Annotation insertion error. #21

Closed arnaldorusso closed 9 years ago

arnaldorusso commented 9 years ago

While trying to insert an Annotation, it returns the following error:

BASIC runtime error! Type: com.sun.star.uno.RuntimeException Message: no text selection.

This is the excert of the code where it seems to crash.

' -----------
' Singletons
' -----------
Function getCursor
    getCursor = VIEW_CURSOR
End Function

Function getTextCursor
    dim oTextCursor
    oTextCursor = getCursor().getText.createTextCursorByRange(getCursor())
    ' oTextCursor.gotoRange(oTextCursor.getStart(), False)

    getTextCursor = oTextCursor
End Function
seanyeh commented 9 years ago

Thanks for letting me know. I will put this on the queue

seanyeh commented 9 years ago

My solution is to disable vibreoffice temporarily when doing an annotation. From what I can tell, I don't think it's possible to have it work with annotations.