#1 Patch proposition

open
nobody
None
5
2006-01-03
2006-01-03
Anonymous
No

Hi,

it seems that the inline macro crashes if no text is
selected. I propose to add the following code to the
main function:

if isEmpty(oShape) then
MsgBox "Please select text - I am unable to
determine the equation size!"
exit sub
end if

just before the follwing line:

if oShape(0).getImplementationName() <> "SvxShapeText"
then exit sub

Christian Wolf
christian.wolf@insa-lyon.fr

Discussion

  • gpiroux
    gpiroux
    2006-01-19

    Logged In: YES
    user_id=1362814

    Hi Christian,

    I will test it this week-end. If you have other comment
    don't hesitate.

    thank you,

    gpiroux