diff options
Diffstat (limited to 'lotuswordpro/source/filter/lwplayout.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwplayout.cxx | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx index 594a375147b6..69ad38e423d9 100644 --- a/lotuswordpro/source/filter/lwplayout.cxx +++ b/lotuswordpro/source/filter/lwplayout.cxx @@ -1644,26 +1644,21 @@ XFColumnSep* LwpLayout::GetColumnSep() return NULL; } - LwpBorderStuff* pBorderStuff = pLayoutGutters->GetBorderStuff(); + LwpBorderStuff& pBorderStuff = pLayoutGutters->GetBorderStuff(); - if(pBorderStuff) - { - LwpBorderStuff::BorderType eType = LwpBorderStuff::LEFT; - LwpColor aColor = pBorderStuff->GetSideColor(eType); - double fWidth = pBorderStuff->GetSideWidth(eType); - //sal_uInt16 nType = pBorderStuff->GetSideType(eType); - - XFColumnSep* pColumnSep = new XFColumnSep(); - XFColor aXFColor(aColor.To24Color()); - pColumnSep->SetColor(aXFColor); - pColumnSep->SetWidth(fWidth); - pColumnSep->SetRelHeight(100); - pColumnSep->SetVerticalAlign(enumXFAlignTop); + LwpBorderStuff::BorderType eType = LwpBorderStuff::LEFT; + LwpColor aColor = pBorderStuff.GetSideColor(eType); + double fWidth = pBorderStuff.GetSideWidth(eType); + //sal_uInt16 nType = pBorderStuff->GetSideType(eType); - return pColumnSep; - } - return NULL; + XFColumnSep* pColumnSep = new XFColumnSep(); + XFColor aXFColor(aColor.To24Color()); + pColumnSep->SetColor(aXFColor); + pColumnSep->SetWidth(fWidth); + pColumnSep->SetRelHeight(100); + pColumnSep->SetVerticalAlign(enumXFAlignTop); + return pColumnSep; } /** |