tweak patch to apply
This commit is contained in:
parent
85552cf731
commit
611aa43a35
@ -39,21 +39,21 @@ index 03e899d..e3b4aa7 100644
|
||||
+++ b/sd/source/ui/view/outlnvsh.cxx
|
||||
@@ -1658,7 +1658,6 @@ bool OutlineViewShell::UpdateTitleObject( SdPage* pPage, Paragraph* pPara )
|
||||
|
||||
::Outliner& rOutliner = pOlView->GetOutliner();
|
||||
::Outliner* pOutliner = pOlView->GetOutliner();
|
||||
SdrTextObj* pTO = pOlView->GetTitleTextObject( pPage );
|
||||
- OutlinerParaObject* pOPO = NULL;
|
||||
|
||||
OUString aTest = rOutliner.GetText(pPara);
|
||||
OUString aTest = pOutliner->GetText(pPara);
|
||||
bool bText = !aTest.isEmpty();
|
||||
@@ -1675,9 +1674,9 @@ bool OutlineViewShell::UpdateTitleObject( SdPage* pPage, Paragraph* pPara )
|
||||
}
|
||||
|
||||
// if we have a title object and a text, set the text
|
||||
- if( pTO )
|
||||
+ OutlinerParaObject* pOPO = pTO ? rOutliner.CreateParaObject(rOutliner.GetAbsPos(pPara), 1) : NULL;
|
||||
+ OutlinerParaObject* pOPO = pTO ? pOutliner->CreateParaObject(rOutliner.GetAbsPos(pPara), 1) : NULL;
|
||||
+ if (pOPO)
|
||||
{
|
||||
- pOPO = rOutliner.CreateParaObject( rOutliner.GetAbsPos( pPara ), 1 );
|
||||
- pOPO = pOutliner->CreateParaObject( pOutliner->GetAbsPos( pPara ), 1 );
|
||||
pOPO->SetOutlinerMode( OUTLINERMODE_TITLEOBJECT );
|
||||
pOPO->SetVertical( pTO->IsVerticalWriting() );
|
||||
if( pTO->GetOutlinerParaObject() && (pOPO->GetTextObject() == pTO->GetOutlinerParaObject()->GetTextObject()) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user