[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/filters/libmsooxml
From:       Lassi Taneli Nieminen <lassniem () gmail ! com>
Date:       2010-11-11 8:57:55
Message-ID: 20101111085755.EFFE8AC89E () svn ! kde ! org
[Download RAW message or body]

SVN commit 1195466 by lassin:

Fixed xlsx drawing frames to have unit.


 M  +2 -2      MsooXmlCommonReaderDrawingMLImpl.h  


--- trunk/koffice/filters/libmsooxml/MsooXmlCommonReaderDrawingMLImpl.h \
#1195465:1195466 @@ -199,7 +199,7 @@
     if (m_rot == 0) {
 #if defined(XLSXXMLDRAWINGREADER_CPP)
     if (m_currentDrawingObject->m_positions.contains(XlsxDrawingObject::FromAnchor)) \
                {  // if we got 'from' cell
-        if (m_currentDrawingObject->m_positions[XlsxDrawingObject::FromAnchor].m_col \
> 0) { +        if (m_currentDrawingObject->m_positions[XlsxDrawingObject::FromAnchor].m_col \
> >= 0) {
             body->addAttributePt("svg:x", \
EMU_TO_POINT(m_currentDrawingObject->m_positions[XlsxDrawingObject::FromAnchor].m_colOff));
                
             body->addAttributePt("svg:y", \
EMU_TO_POINT(m_currentDrawingObject->m_positions[XlsxDrawingObject::FromAnchor].m_rowOff));
  }
@@ -207,7 +207,7 @@
             body->addAttribute("svg:x", EMU_TO_POINT(m_svgX));
             body->addAttribute("svg:y", EMU_TO_POINT(m_svgY));
         }
-        if (m_currentDrawingObject->m_positions[XlsxDrawingObject::ToAnchor].m_col > \
0) { +        if (m_currentDrawingObject->m_positions[XlsxDrawingObject::ToAnchor].m_col \
>= 0) {  body->addAttribute("table:end-cell-address", \
> KSpread::Util::encodeColumnLabelText(m_currentDrawingObject->m_positions[XlsxDrawingObject::ToAnchor].m_col+1) \
> +
                 QString::number(m_currentDrawingObject->m_positions[XlsxDrawingObject::ToAnchor].m_row+1));
                
             body->addAttributePt("table:end-x", \
EMU_TO_POINT(m_currentDrawingObject->m_positions[XlsxDrawingObject::ToAnchor].m_colOff));



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic