https://bugs.freedesktop.org/show_bug.cgi?id=37625
--- Comment #11 from Noel Power <[email protected]> 2012-03-09 03:13:33 PST --- oBorder = CellRange.BottomBorder With oBorder .Color = 0 .InnerLineWidth = 10 .OuterLineWidth = 0 .LineDistance = 0 End With CellRange.BottomBorder = oBorder the pattern above should work fine, oBorder is a copy of that css:table::BorderLine structure. And CellRange.BottomBorder = oBorder will set the BottomBorder property of the CellRange object. Infact I just slapped a debugger on the calc uno object, it does get the correct values from basic. So... this aint a basic problem but a calc uno object problem, not sure if this really is a regression, if this was reproducible in LibO 3.2 rc1 then I would strongly guess this is inherited from the old openoffice code. But... whatever it still is imo a bad bug ( I'll have a look at the calc code to see if anything jumps out as been awfully wrong ) note: it sortof mentioned in the some of the previous comments that modifying a member of a structure directly doesn't work. e.g even if CellRange.BottomBorder = oBorder worked correctly then CellRange.BottomBorder.InnerLineWidth = 10 will never work. This is not a limitation of Basic but rather down to UNO. CellRange has a property BottomBorder which is struct. Structures in UNO are returned by value, the line 'CellRange.BottomBorder.InnerLineWidth = 10' modifies the the returned ( maybe temporary is a better term ) structure -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
