https://bz.apache.org/ooo/show_bug.cgi?id=127050

--- Comment #3 from hanya <[email protected]> ---
I could observe the problem that the LineColor is not changed sometimes in the
specific situation. 
When I execute Basic macro did not change the line color after return back from
the edit mode of the chart in the sheet of the calc document. But not every
time.
I have no idea how to avoid such problem.

Here is the code which I tried.
Sub Snippet2
  oSheets = ThisComponent.getSheets()
  oObj1 = oSheets.getByIndex(0)
  oCharts = oObj1.getCharts()
  oObj2 = oCharts.getByIndex(0)

  oEmbeddedObject = oObj2.getEmbeddedObject()
  oDiagram = oEmbeddedObject.getDiagram()

  oDataRowProperties = oDiagram.getDataRowProperties(0)
  'msgbox oDataRowProperties.LineColor
  if oDataRowProperties.LineColor <> 1973940 then
    oDataRowProperties.LineColor = 1973940
  else
    oDataRowProperties.LineColor = 15000000
  end if
end sub

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to