You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2013/10/12 20:34:57 UTC

[Bug 49155] Unwanted top distance after insertion of a caption for a graphic

https://issues.apache.org/ooo/show_bug.cgi?id=49155

--- Comment #6 from Ariel Constenla-Haile <ar...@apache.org> ---
Created attachment 81756
  --> https://issues.apache.org/ooo/attachment.cgi?id=81756&action=edit
Patch with proposed fix

The patch takes Andreas' suggestion, changing the relative vertical
orientation.

Note that there was a bug in the way SwFmtVertOrient and SwFmtHoriOrient where
constructed: in both cases, the orientation is the second parameter of the
constructor
(sw/inc/fmtornt.hxx)

SwFmtVertOrient(
 SwTwips nY = 0,
 sal_Int16 eVert = com::sun::star::text::VertOrientation::NONE,
 sal_Int16 eRel = com::sun::star::text::RelOrientation::PRINT_AREA );

SwFmtHoriOrient(
 SwTwips nX = 0,
 sal_Int16 eHori = com::sun::star::text::HoriOrientation::NONE,
 sal_Int16 eRel = com::sun::star::text::RelOrientation::PRINT_AREA,
 sal_Bool bPos = sal_False );

but the code was omitting the first parameter.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.