maoyg wrote:
> FontWork should be disabled for note objects,because it will be caused
> crash.
> I analyzed the call stack, and in the void ScDrawShell::GetState()
> (sc\source\ui\drawfunc\drawsh2.cxx ),
> if( pObj && pObj- >GetObjIdentifier() == OBJ_CAPTION && pObj- >GetLayer()
> == SC_LAYER_INTERN)
> {
> bDisableAnchor = true;
> rSet.DisableItem( SID_ANCHOR_PAGE );
> rSet.DisableItem( SID_ANCHOR_CELL );
> + rSet.DisableItem( SID_FONTWORK ); //add
> }
> The bug will be fixed.
> l'm looking forward to your advice!
SID_FONTWORK is the slot to open/close the Fontwork window. With that
change, you could still select a normal object, open the Fontwork
window, select the note, and apply Fontwork operations to the note. You
should look at the GetFormTextState methods of ScDrawShell and
ScDrawTextObjectBar.
Niklas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]