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

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


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

New commits:
commit 73ff5af13bd25b2d0e3a56dd196da217c844a07d
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/10770
    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 f5f0fb1..5ea6c95 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -2250,37 +2250,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