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
9cfab5c6
Kaydet (Commit)
9cfab5c6
authored
May 09, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
index is 1-based in this case
Change-Id: I74aae3f422423de09cb012e274f8d536f8b778f1
üst
a2a9f197
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
colorscale.cxx
sc/source/core/data/colorscale.cxx
+3
-2
documen4.cxx
sc/source/core/data/documen4.cxx
+2
-1
No files found.
sc/source/core/data/colorscale.cxx
Dosyayı görüntüle @
9cfab5c6
...
...
@@ -148,12 +148,13 @@ void ScColorScaleFormatList::AddFormat( ScColorScaleFormat* pFormat )
maColorScaleFormats
.
push_back
(
pFormat
);
}
// attention nFormat is 1 based, 0 is reserved for no format
ScColorScaleFormat
*
ScColorScaleFormatList
::
GetFormat
(
sal_uInt32
nFormat
)
{
if
(
nFormat
>
=
size
()
)
if
(
nFormat
>
size
()
||
!
nFormat
)
return
NULL
;
return
&
maColorScaleFormats
[
nFormat
];
return
&
maColorScaleFormats
[
nFormat
-
1
];
}
ScColorScaleFormatList
::
iterator
ScColorScaleFormatList
::
begin
()
...
...
sc/source/core/data/documen4.cxx
Dosyayı görüntüle @
9cfab5c6
...
...
@@ -629,6 +629,7 @@ sal_uLong ScDocument::AddCondFormat( const ScConditionalFormat& rNew )
}
//takes ownership
// returns a 1-based index, 0 is reserved for no entry
sal_uLong
ScDocument
::
AddColorScaleFormat
(
ScColorScaleFormat
*
pNew
)
{
if
(
!
pNew
)
...
...
@@ -639,7 +640,7 @@ sal_uLong ScDocument::AddColorScaleFormat( ScColorScaleFormat* pNew )
mpColorScaleList
->
AddFormat
(
pNew
);
return
mpColorScaleList
->
size
()
-
1
;
return
mpColorScaleList
->
size
();
}
sal_uLong
ScDocument
::
AddValidationEntry
(
const
ScValidationData
&
rNew
)
...
...
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