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
f7a40e14
Kaydet (Commit)
f7a40e14
authored
May 20, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#91404 check if the item position is valid
Change-Id: I963cf83d32bb976095274be913806de19bdf7a86
üst
7f49a466
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
toolbox.cxx
vcl/source/window/toolbox.cxx
+6
-3
No files found.
vcl/source/window/toolbox.cxx
Dosyayı görüntüle @
f7a40e14
...
@@ -2980,7 +2980,7 @@ void ToolBox::ImplDrawButton(vcl::RenderContext& rRenderContext, const Rectangle
...
@@ -2980,7 +2980,7 @@ void ToolBox::ImplDrawButton(vcl::RenderContext& rRenderContext, const Rectangle
void
ToolBox
::
ImplDrawItem
(
vcl
::
RenderContext
&
rRenderContext
,
sal_uInt16
nPos
,
sal_uInt16
nHighlight
,
bool
bPaint
,
bool
bLayout
)
void
ToolBox
::
ImplDrawItem
(
vcl
::
RenderContext
&
rRenderContext
,
sal_uInt16
nPos
,
sal_uInt16
nHighlight
,
bool
bPaint
,
bool
bLayout
)
{
{
if
(
nPos
>=
mpData
->
m_aItems
.
size
()
)
if
(
nPos
>=
mpData
->
m_aItems
.
size
()
)
return
;
return
;
// execute pending paint requests
// execute pending paint requests
...
@@ -4055,8 +4055,11 @@ void ToolBox::Tracking( const TrackingEvent& rTEvt )
...
@@ -4055,8 +4055,11 @@ void ToolBox::Tracking( const TrackingEvent& rTEvt )
void
ToolBox
::
InvalidateItem
(
sal_uInt16
nPosition
)
void
ToolBox
::
InvalidateItem
(
sal_uInt16
nPosition
)
{
{
ImplToolItem
*
pItem
=
&
mpData
->
m_aItems
[
nPosition
];
if
(
nPosition
<
mpData
->
m_aItems
.
size
())
Invalidate
(
pItem
->
maRect
);
{
ImplToolItem
*
pItem
=
&
mpData
->
m_aItems
[
nPosition
];
Invalidate
(
pItem
->
maRect
);
}
}
}
void
ToolBox
::
InvalidateMenuButton
()
void
ToolBox
::
InvalidateMenuButton
()
...
...
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