From 4f53fc260438591467c2b9dfc13eb76abeac3d9e Mon Sep 17 00:00:00 2001 From: Jean-Pierre Ledure Date: Thu, 28 Oct 2021 12:05:35 +0200 Subject: ScriptForge - (SF_Chart) fix Resize() method must return a Boolean Change-Id: I8acccd3036c8a08d6fd52b64623f2c9ab3ded5ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124323 Tested-by: Jean-Pierre Ledure Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure --- wizards/source/sfdocuments/SF_Calc.xba | 2 +- wizards/source/sfdocuments/SF_Chart.xba | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'wizards') diff --git a/wizards/source/sfdocuments/SF_Calc.xba b/wizards/source/sfdocuments/SF_Calc.xba index f8a13f927953..a816b96920a0 100644 --- a/wizards/source/sfdocuments/SF_Calc.xba +++ b/wizards/source/sfdocuments/SF_Calc.xba @@ -1017,7 +1017,7 @@ Try: ' Create the chart and get ihe corresponding chart instance oSheet.getCharts.addNewByName(ChartName, oRectangle, Array(oRange.XCellRange.RangeAddress), ColumnHeader, RowHeader) Set oChart = Charts(SheetName, ChartName) - oChart._Shape.Name = ChartName ' Both used-defined and internal names match ChartName + oChart._Shape.Name = ChartName ' Both user-defined and internal names match ChartName oChart._Diagram.Wall.FillColor = RGB(255, 255, 255) ' Align on background color set by the user interface by default Finally: diff --git a/wizards/source/sfdocuments/SF_Chart.xba b/wizards/source/sfdocuments/SF_Chart.xba index 175fecfccaf8..a4cbf2f2ba28 100644 --- a/wizards/source/sfdocuments/SF_Chart.xba +++ b/wizards/source/sfdocuments/SF_Chart.xba @@ -137,7 +137,7 @@ End Property ' SFDocuments.SF_Chart.Dim3D (let) REM ----------------------------------------------------------------------------- Property Get Exploded() As Variant -''' the offset by which pie segments in a PieDiagram are dragged outside from the center. +''' the offset by which pie segments in a PieDiagram (pie or donut) are dragged outside from the center. ''' This value is given in percent of the radius. Exploded = _PropertyGet("Exploded") End Property ' SFDocuments.SF_Chart.Exploded (get)_ChartObject @@ -417,7 +417,7 @@ Public Function Resize(Optional ByVal XPos As Variant _ , Optional ByVal YPos As Variant _ , Optional ByVal Width As Variant _ , Optional ByVal Height As Variant _ - ) As String + ) As Boolean ''' Move the topleft corner of a chart to new coordinates and/or modify its dimensions ''' All distances are expressed in 1/100th mm ''' Args: -- cgit