diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-01-21 14:29:12 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-19 17:57:18 +0100 |
commit | bb3a9e8b7feec274782e5f10ae2ebd0da23d24e5 (patch) | |
tree | 43fd6485e0e8c1816844a1d23d2bab2b57c2efd5 /editeng | |
parent | d13469c38ba3e88219c918425b106e2ef83608c5 (diff) |
ODF borders import: constants cleanup
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 90d3f3f15121..cc7bf3b743d3 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -1751,6 +1751,7 @@ sal_Bool SvxBoxItem::LineToSvxLine(const ::com::sun::star::table::BorderLine& rL sal_Bool SvxBoxItem::LineToSvxLine(const ::com::sun::star::table::BorderLine2& rLine, SvxBorderLine& rSvxLine, sal_Bool bConvert) { + SvxBorderStyle nStyle = NO_STYLE; switch ( rLine.LineStyle ) { default: @@ -1800,9 +1801,9 @@ SvxBoxItem::LineToSvxLine(const ::com::sun::star::table::BorderLine2& rLine, Svx rSvxLine.SetStyle( nStyle ); sal_Bool bGuessWidth = sal_True; - if ( rLine->LineWidth ) + if ( rLine.LineWidth ) { - rSvxLine.SetWidth( bConvert? MM100_TO_TWIP_UNSIGNED( rLine->LineWidth ) : rLine->LineWidth ); + rSvxLine.SetWidth( bConvert? MM100_TO_TWIP_UNSIGNED( rLine.LineWidth ) : rLine.LineWidth ); bGuessWidth = sal_False; } |