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 | 32f4b0aad616dac395023badfcf6e297714d230e (patch) | |
tree | a311b43fe5229ab9e2ec8b8b2a51d48925ff460e /editeng | |
parent | 52b908ce3db5f9b1556cdb4cbdc3b92ef2f89583 (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 886ab164ec..b21f8816ec 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; } |