[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - chart2/source

Kohei Yoshida kohei.yoshida at collabora.com
Wed Aug 6 01:34:51 PDT 2014


 chart2/source/view/main/ChartView.cxx |   32 +-------------------------------
 1 file changed, 1 insertion(+), 31 deletions(-)

New commits:
commit a3438ee890b360dda9201f03a78e1c5b98193c36
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Tue Aug 5 14:57:18 2014 -0400

    bnc#886540: Let's not push the available area down when no titles are there.
    
    This improves visual layout compability with MS Office chart & looks better.
    
    Change-Id: I348ea81152eca4e3bba9e0d9460448d9314738ad
    (cherry picked from commit b398ed8e3f95b75705bb2e53d49589ef7fdbb1c7)
    Reviewed-on: https://gerrit.libreoffice.org/10771
    Reviewed-by: Matúš Kukan <matus.kukan at collabora.com>
    Tested-by: Matúš Kukan <matus.kukan at collabora.com>

diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index c6b5878..1965f05 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -2217,37 +2217,7 @@ boost::shared_ptr<VTitle> lcl_createTitle( TitleHelper::eTitleType eType
                 break;
         }
     }
-    else
-    {
-        // #i109336# Improve auto positioning in chart
-        switch ( eAlignment )
-        {
-            case ALIGN_TOP:
-                {
-                    rRemainingSpace.Y += nYDistance;
-                    rRemainingSpace.Height -= nYDistance;
-                }
-                break;
-            case ALIGN_BOTTOM:
-                {
-                    rRemainingSpace.Height -= nYDistance;
-                }
-                break;
-            case ALIGN_LEFT:
-                {
-                    rRemainingSpace.X += nXDistance;
-                    rRemainingSpace.Width -= nXDistance;
-                }
-                break;
-            case ALIGN_RIGHT:
-                {
-                    rRemainingSpace.Width -= nXDistance;
-                }
-                break;
-            default:
-                break;
-        }
-    }
+
     return apVTitle;
 }
 


More information about the Libreoffice-commits mailing list