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
338ccf09
Kaydet (Commit)
338ccf09
authored
Eyl 14, 2013
tarafından
Laurent Balland-Poirier
Kaydeden (comit)
Ivan Timofeev
Eyl 17, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#64455 Handle unknown color in color line
Change-Id: Ice4205056cc64ae50bd3c8136aeae6f648adbd0b
üst
ed9a8291
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
1 deletion
+37
-1
itemwin.cxx
svx/source/tbxctrls/itemwin.cxx
+37
-1
No files found.
svx/source/tbxctrls/itemwin.cxx
Dosyayı görüntüle @
338ccf09
...
...
@@ -28,6 +28,9 @@
#include <svx/dialogs.hrc>
#define TMP_STR_BEGIN '['
#define TMP_STR_END ']'
#define DELAY_TIMEOUT 100
#include <svx/xlnclit.hxx>
...
...
@@ -295,7 +298,40 @@ SvxColorBox::~SvxColorBox()
void
SvxColorBox
::
Update
(
const
XLineColorItem
*
pItem
)
{
if
(
pItem
)
SelectEntry
(
pItem
->
GetColorValue
()
);
{
// fdo#64455
::
Color
aColor
=
pItem
->
GetColorValue
();
String
aString
(
pItem
->
GetName
()
);
SelectEntry
(
aString
);
if
(
GetSelectEntryPos
()
==
LISTBOX_ENTRY_NOTFOUND
||
GetSelectEntryColor
()
!=
aColor
)
{
SelectEntry
(
aColor
);
}
// Check if the entry is not in the list
if
(
GetSelectEntryPos
()
==
LISTBOX_ENTRY_NOTFOUND
||
GetSelectEntryColor
()
!=
aColor
)
{
sal_uInt16
nCount
=
GetEntryCount
();
String
aTmpStr
;
if
(
nCount
>
0
)
{
// Last entry gets tested against temporary color
aTmpStr
=
GetEntry
(
nCount
-
1
);
if
(
aTmpStr
.
GetChar
(
0
)
==
TMP_STR_BEGIN
&&
aTmpStr
.
GetChar
(
aTmpStr
.
Len
()
-
1
)
==
TMP_STR_END
)
{
RemoveEntry
(
nCount
-
1
);
}
}
aTmpStr
=
TMP_STR_BEGIN
;
aTmpStr
+=
aString
;
aTmpStr
+=
TMP_STR_END
;
sal_uInt16
nPos
=
InsertEntry
(
aColor
,
aTmpStr
);
SelectEntryPos
(
nPos
);
}
}
else
SetNoSelection
();
}
...
...
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