Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
3a0c25d6
Kaydet (Commit)
3a0c25d6
authored
Eki 21, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Only call getChartType when the return value is actually used
Change-Id: I687ef0ce7013bce08caa25e1e6035507b814e20a
üst
d1b3a33d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ChartController.cxx
chart2/source/controller/main/ChartController.cxx
+6
-5
No files found.
chart2/source/controller/main/ChartController.cxx
Dosyayı görüntüle @
3a0c25d6
...
...
@@ -311,8 +311,6 @@ OUString ChartController::GetContextName()
return
OUString
(
"Chart"
);
ObjectType
eObjectID
=
ObjectIdentifier
::
getObjectType
(
aCID
);
css
::
uno
::
Reference
<
css
::
chart2
::
XChartType
>
xChartType
=
getChartType
(
css
::
uno
::
Reference
<
css
::
chart2
::
XChartDocument
>
(
getModel
(),
uno
::
UNO_QUERY
));
switch
(
eObjectID
)
{
case
OBJECTTYPE_DATA_SERIES
:
...
...
@@ -327,9 +325,12 @@ OUString ChartController::GetContextName()
case
OBJECTTYPE_GRID
:
return
OUString
(
"Grid"
);
case
OBJECTTYPE_DIAGRAM
:
if
(
xChartType
.
is
()
&&
xChartType
->
getChartType
()
==
"com.sun.star.chart2.PieChartType"
)
return
OUString
(
"ChartElements"
);
break
;
{
css
::
uno
::
Reference
<
css
::
chart2
::
XChartType
>
xChartType
=
getChartType
(
css
::
uno
::
Reference
<
css
::
chart2
::
XChartDocument
>
(
getModel
(),
uno
::
UNO_QUERY
));
if
(
xChartType
.
is
()
&&
xChartType
->
getChartType
()
==
"com.sun.star.chart2.PieChartType"
)
return
OUString
(
"ChartElements"
);
break
;
}
case
OBJECTTYPE_DATA_CURVE
:
case
OBJECTTYPE_DATA_AVERAGE_LINE
:
return
OUString
(
"Trendline"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment