Hi Frank, On Tue, 2007-01-02 at 12:23 +0100, Frank Meies - Sun Germany - Development - Software Engineer wrote: > Change your code to use the SwSpecialPos stuff: > > SwCrsrMoveState aTmpState( MV_SETONLYTEXT ); > SwSpecialPos aSpecialPos; > aTmpState.pSpecialPos = &aSpecialPos; > GetLayout()->GetCrsrOfst( &aPos, aPt, &aTmpState ) > > After the call to GetCrsrOfst() aSpecialPos should contain the correct > offset.
I did what you said but after the call to GetCrsrOfst() "aSpecialPos.nCharOfst" is zero. Therefore I have read through the code of that function but I haven't found the lines that modify the aSpecialPos structure. Can you help me with that? Best regards -- Jakob Lechner Research & Development Fabalabs Software GmbH Honauerstraße 4 A-4020 Linz Tel.: [+43] (70) 60 61 62 Fax: [+43] (70) 60 61 62-609 E-Mail: [EMAIL PROTECTED] Web: http://www.fabalabs.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
