Kaydet (Commit) 5c91631d authored tarafından Marco Cecchetti's avatar Marco Cecchetti

impress - unable to search inside table - fixed

Change-Id: I07df8d0330390ac599aac364581aee1c9fd0f809
üst 0835f5b8
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment