[GSoC] Copying content from one text box to another in svx/ - A failed attempt
matteo.campanelli at gmail.com
Mon Jul 14 07:51:07 PDT 2014
Today I tried to embed some code to link the content of one text box to
another in Draw. I took heavy inspiration from some existing code in
However I get a SIGSEGV in some other part of the code shortly afterwards.
What I tried to do was the following:
- Having two text boxes in the document,
- I tried to copy (a part of) the content from SdrPage::GetObj(0) into
SdrPage::GetObj(1). This occurs in svx's drawinglayer and in particular
- The text is copied into the outliner of the second text box to be
layouted again (simulating what FitFrameToTextSize above does. An important
difference with that code is that now two different boxes are used).
This is the link to the main commit:
Here is the seg. fault message:
Program received signal SIGSEGV, Segmentation fault.
0x00007f5cb26d9b5c in ContentAttribs::GetItem (this=0x99999999999999a1,
1804 if ( pStyle && ( aAttribSet.GetItemState( nWhich, false ) !=
SFX_ITEM_ON ) )
Thorsten, any opinions?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LibreOffice