summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Jacobi <sj@openoffice.org>2008-10-29 13:10:26 +0000
committerSven Jacobi <sj@openoffice.org>2008-10-29 13:10:26 +0000
commitae014bb864040fd18279d9e7c7d883914ec80525 (patch)
tree0bc09923ff4ebd2108b81b12a4c6b4d8d27e63b3
parentc23fb70694d1460d95e07da36df2c6ecf7bffe59 (diff)
undoing change commited in r262785
-rw-r--r--svx/source/svdraw/svdfppt.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdfppt.cxx b/svx/source/svdraw/svdfppt.cxx
index 8112688d36..0788486bda 100644
--- a/svx/source/svdraw/svdfppt.cxx
+++ b/svx/source/svdraw/svdfppt.cxx
@@ -7254,7 +7254,7 @@ void GetLinePositions( const SdrObject* pObj, const std::set< sal_Int32 >& rRows
nPosition |= aPt1.Y() < aPt2.Y() ? LinePositionBLTR : LinePositionTLBR;
std::set< sal_Int32 >::const_iterator aRow( rRows.find( aPt1.Y() < aPt2.Y() ? aPt1.Y() : aPt2.Y() ) );
- std::set< sal_Int32 >::const_iterator aColumn( rColumns.find( aPt1.X() < aPt2.X() ? aPt1.X() : aPt2.X() ) );
+ std::set< sal_Int32 >::const_iterator aColumn( rRows.find( aPt1.X() < aPt2.X() ? aPt1.X() : aPt2.X() ) );
if ( ( aRow != rRows.end() ) && ( aColumn != rColumns.end() ) )
{
nPosition |= ( std::distance( rRows.begin(), aRow ) * rColumns.size() ) + std::distance( rColumns.begin(), aColumn );
@@ -7514,7 +7514,7 @@ SdrObject* SdrPowerPointImport::CreateTable( SdrObject* pGroup, sal_uInt32* pTab
}
}
::sdr::table::SdrTableObj* pTable = new ::sdr::table::SdrTableObj( pSdrModel );
- pTable->uno_lock();
+ pTable->SetSnapRect( pGroup->GetSnapRect() );
Reference< XTable > xTable( pTable->getTable() );
try
{
@@ -7580,14 +7580,11 @@ SdrObject* SdrPowerPointImport::CreateTable( SdrObject* pGroup, sal_uInt32* pTab
}
}
}
- pTable->uno_unlock();
- pTable->SetSnapRect( pGroup->GetSnapRect() );
- pRet = pTable;
SdrObject::Free( pGroup );
+ pRet = pTable;
}
catch( Exception& )
{
- pTable->uno_unlock();
SdrObject* pObj = pTable;
SdrObject::Free( pObj );
}