[Libreoffice] patch for preserving the table alignment

Noel Power nopower at novell.com
Fri Jul 15 08:35:19 PDT 2011


Hi Caolán

could you have a look at this patch
http://cgit.freedesktop.org/libreoffice/writer/commit/?id=95351a519bec2833f5d936c20e3916a4e283b0f6

This should be a nice stroll down memory lane for you as it seems 
related to http://openoffice.org/bugzilla/show_bug.cgi?id=1291, yes 
issue #1291 !!!
Background to the patch is we have a customer document where the table 
width extends past the page margins, the table is a simple 2 column X 1 
row where the 1st column width is also extends past than the page 
margin. The problem is when the table is imported the table width ( and 
hence column widths ) are truncated relative to the page width ( seems 
due to the alignment being set to auto ) hence the connection with the 
issue above. In this case the formatting gets screwed because the text 
lines are wider than the page margin and now the text flows onto new 
lines too early. This patch fixes it but I am worried that I might be 
breaking something from the issue above, was there a reason why the 
table's alignment was forced to text::HoriOrientation::FULL( e.g. auto ) 
? and/or any thoughts about my tweak causing any problems


Noel


More information about the LibreOffice mailing list