summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoframe.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-04-22 15:10:19 +0200
committerJan Holesovsky <kendy@suse.cz>2011-04-22 15:10:19 +0200
commita093a28ffe7cae74fb731e84dd3de09102763303 (patch)
tree8ce5586e27a76180d800c09f8b60d5cce3d1c140 /sw/source/core/unocore/unoframe.cxx
parent8dc7fcfb5e5a8de2411d2bb29f450cabc3690859 (diff)
parent99796d2482c2931a1023b8230a3f6b18d1f48ebf (diff)
Merge commit 'ooo/DEV300_m106' into libreoffice-3-4
Conflicts: sw/source/core/docnode/ndnotxt.cxx sw/source/core/inc/viewimp.hxx sw/source/core/layout/fly.cxx sw/source/core/layout/paintfrm.cxx sw/source/filter/ww8/WW8TableInfo.cxx sw/source/filter/ww8/wrtw8nds.cxx sw/source/filter/ww8/wrtww8.cxx sw/source/filter/ww8/wrtww8.hxx sw/source/filter/ww8/ww8atr.cxx sw/source/filter/xml/xmlitemi.cxx sw/source/filter/xml/xmlmeta.cxx sw/source/ui/app/docsh2.cxx sw/source/ui/dialog/swdlgfact.cxx sw/source/ui/shells/grfsh.cxx
Diffstat (limited to 'sw/source/core/unocore/unoframe.cxx')
-rwxr-xr-x[-rw-r--r--]sw/source/core/unocore/unoframe.cxx22
1 files changed, 20 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx
index e23cf3c9d4eb..4af1a5c756c0 100644..100755
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -1561,8 +1561,24 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName)
if(pIdx)
{
SwNodeIndex aIdx(*pIdx, 1);
- SwNoTxtNode* pNoTxt = aIdx.GetNode().GetNoTxtNode();
- Size aActSize = ((SwGrfNode*)pNoTxt)->GetTwipSize();
+ // --> OD #i85105#
+// SwNoTxtNode* pNoTxt = aIdx.GetNode().GetNoTxtNode();
+// Size aActSize = ((SwGrfNode*)pNoTxt)->GetTwipSize();
+ Size aActSize;
+ {
+ SwGrfNode* pGrfNode = dynamic_cast<SwGrfNode*>(aIdx.GetNode().GetNoTxtNode());
+ if ( pGrfNode )
+ {
+ aActSize = pGrfNode->GetTwipSize();
+ if ( aActSize.Width() == 0 && aActSize.Height() == 0 &&
+ pGrfNode->IsLinkedFile() )
+ {
+ pGrfNode->SwapIn( sal_True );
+ aActSize = pGrfNode->GetTwipSize();
+ }
+ }
+ }
+ // <--
awt::Size aTmp;
aTmp.Width = TWIP_TO_MM100(aActSize.Width());
aTmp.Height = TWIP_TO_MM100(aActSize.Height());
@@ -2072,6 +2088,8 @@ void SwXFrame::attachToRange(const uno::Reference< text::XTextRange > & xTextRan
aFrmSet.Put( SwFmtAnchor( FLY_AT_PAGE, 1 ));
}
+ aPam.DeleteMark(); // mark position node will be deleted!
+ aIntPam.DeleteMark(); // mark position node will be deleted!
pFmt = pDoc->MakeFlyAndMove( *m_pCopySource, aFrmSet,
0,
pParentFrmFmt );