Bugzilla – Attachment 41945 Details for
Bug 32613
RTF -- Wrapping text around images fails to export properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
partial fix that addresses the regression from go-oo 3.2.x
0001-RTF-fix-height-of-wrapped-pictures-on-export-partial.patch (text/plain), 2.68 KB, created by
Miklos Vajna
on 2011-01-12 17:12:38 UTC
(
hide
)
Description:
partial fix that addresses the regression from go-oo 3.2.x
Filename:
MIME Type:
Creator:
Miklos Vajna
Created:
2011-01-12 17:12:38 UTC
Size:
2.68 KB
patch
obsolete
>From 8520c6220a4f6e28849eded4cdd3c4e6552a54a9 Mon Sep 17 00:00:00 2001 >From: Miklos Vajna <vmiklos@frugalware.org> >Date: Thu, 13 Jan 2011 02:04:21 +0100 >Subject: [PATCH] RTF: fix height of wrapped pictures on export (partial fix for fdo#32613) > >--- > sw/source/filter/ww8/rtfattributeoutput.cxx | 12 ++++++++---- > sw/source/filter/ww8/rtfattributeoutput.hxx | 2 +- > 2 files changed, 9 insertions(+), 5 deletions(-) > >diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx >index 8ea30b8..82b0eab 100644 >--- a/sw/source/filter/ww8/rtfattributeoutput.cxx >+++ b/sw/source/filter/ww8/rtfattributeoutput.cxx >@@ -1524,7 +1524,7 @@ void RtfAttributeOutput::OutputFlyFrame_Impl( const sw::Frame& rFrame, const Poi > } > > if ( pGrfNode ) >- FlyFrameGraphic( dynamic_cast<const SwFlyFrmFmt*>( &rFrame.GetFrmFmt() ), *pGrfNode, rFrame.GetLayoutSize() ); >+ FlyFrameGraphic( dynamic_cast<const SwFlyFrmFmt*>( &rFrame.GetFrmFmt() ), *pGrfNode); > break; > case sw::Frame::eDrawing: > { >@@ -3359,7 +3359,7 @@ void RtfAttributeOutput::FlyFrameOLE( const SwFlyFrmFmt* pFlyFrmFmt, SwOLENode& > m_aRunText.append("}}}}"); > } > >-void RtfAttributeOutput::FlyFrameGraphic( const SwFlyFrmFmt* pFlyFrmFmt, const SwGrfNode& rGrfNode, const Size& rSize ) >+void RtfAttributeOutput::FlyFrameGraphic( const SwFlyFrmFmt* pFlyFrmFmt, const SwGrfNode& rGrfNode) > { > OSL_TRACE("%s", OSL_THIS_FUNC); > >@@ -3418,8 +3418,12 @@ void RtfAttributeOutput::FlyFrameGraphic( const SwFlyFrmFmt* pFlyFrmFmt, const S > //Get original size in twips > Size aSize(sw::util::GetSwappedInSize(rGrfNode)); > Size aRendered(aSize); >- aRendered.Width() = rSize.Width(); >- aRendered.Height() = rSize.Height(); >+ if (pFlyFrmFmt) >+ { >+ const SwFmtFrmSize& rS = pFlyFrmFmt->GetFrmSize(); >+ aRendered.Width() = rS.GetWidth(); >+ aRendered.Height() = rS.GetHeight(); >+ } > > /* > If the graphic is not of type WMF then we will have to store two >diff --git a/sw/source/filter/ww8/rtfattributeoutput.hxx b/sw/source/filter/ww8/rtfattributeoutput.hxx >index 9b3923d..17de606 100644 >--- a/sw/source/filter/ww8/rtfattributeoutput.hxx >+++ b/sw/source/filter/ww8/rtfattributeoutput.hxx >@@ -432,7 +432,7 @@ protected: > private: > > /// Output graphic fly frames. >- void FlyFrameGraphic( const SwFlyFrmFmt* pFlyFrmFmt, const SwGrfNode& rGrfNode, const Size& rSize ); >+ void FlyFrameGraphic( const SwFlyFrmFmt* pFlyFrmFmt, const SwGrfNode& rGrfNode ); > void FlyFrameOLE( const SwFlyFrmFmt* pFlyFrmFmt, SwOLENode& rOLENode, const Size& rSize ); > void FlyFrameOLEData( SwOLENode& rOLENode ); > >-- >1.7.3.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 32613
:
41422
|
41900
|
41928
| 41945