diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2016-02-04 15:36:43 +0100 |
---|---|---|
committer | Marco Cecchetti <marco.cecchetti@collabora.com> | 2016-02-04 15:39:04 +0100 |
commit | 5c91631dbfc9394687fb84cc76384601a566d6ff (patch) | |
tree | 8bc15e78d38ca6264a247091eb329c86ce8f69ff /sd/source/ui/view | |
parent | 0835f5b80cecee7ec4326e4ab295f520112052fb (diff) |
impress - unable to search inside table - fixed
Change-Id: I07df8d0330390ac599aac364581aee1c9fd0f809
Diffstat (limited to 'sd/source/ui/view')
-rw-r--r-- | sd/source/ui/view/Outliner.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx index de9756eca9cf..c413cf92a5ae 100644 --- a/sd/source/ui/view/Outliner.cxx +++ b/sd/source/ui/view/Outliner.cxx @@ -1226,11 +1226,6 @@ bool Outliner::ShowWrapArroundDialog() bool Outliner::IsValidTextObject (const ::sd::outliner::IteratorPosition& rPosition) { - // TODO implement iteration through table cells and remove this workaround - ::sdr::table::SdrTableObj* pTableObject = dynamic_cast< ::sdr::table::SdrTableObj* >( rPosition.mxObject.get() ); - if( pTableObject != nullptr ) - return false; - SdrTextObj* pObject = dynamic_cast< SdrTextObj* >( rPosition.mxObject.get() ); return (pObject != nullptr) && pObject->HasText() && ! pObject->IsEmptyPresObj(); } @@ -1240,7 +1235,7 @@ void Outliner::PutTextIntoOutliner() mpTextObj = dynamic_cast<SdrTextObj*>( mpObj ); if ( mpTextObj && mpTextObj->HasText() && !mpTextObj->IsEmptyPresObj() ) { - SdrText* pText = mpTextObj->getText( mnText ); + SdrText* pText = mpTextObj->getText( maCurrentPosition.mnText ); mpParaObj = pText ? pText->GetOutlinerParaObject() : nullptr; if (mpParaObj != nullptr) |