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
f02ee5b7
Kaydet (Commit)
f02ee5b7
authored
Şub 24, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid unnecessary bad downcasts to Button
Change-Id: I36baaa1cd46385430474f8a841eafaaba07a18fc
üst
9473ba24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
vclxwindows.cxx
toolkit/source/awt/vclxwindows.cxx
+5
-2
No files found.
toolkit/source/awt/vclxwindows.cxx
Dosyayı görüntüle @
f02ee5b7
...
@@ -236,8 +236,7 @@ void VCLXGraphicControl::setProperty( const OUString& PropertyName, const ::com:
...
@@ -236,8 +236,7 @@ void VCLXGraphicControl::setProperty( const OUString& PropertyName, const ::com:
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
Button
*
pButton
=
static_cast
<
Button
*
>
(
GetWindow
()
);
if
(
!
GetWindow
()
)
if
(
!
pButton
)
return
;
return
;
sal_uInt16
nPropType
=
GetPropertyId
(
PropertyName
);
sal_uInt16
nPropType
=
GetPropertyId
(
PropertyName
);
switch
(
nPropType
)
switch
(
nPropType
)
...
@@ -261,7 +260,10 @@ void VCLXGraphicControl::setProperty( const OUString& PropertyName, const ::com:
...
@@ -261,7 +260,10 @@ void VCLXGraphicControl::setProperty( const OUString& PropertyName, const ::com:
{
{
sal_Int16
nAlignment
=
sal_Int16
();
sal_Int16
nAlignment
=
sal_Int16
();
if
(
Value
>>=
nAlignment
)
if
(
Value
>>=
nAlignment
)
{
Button
*
pButton
=
static_cast
<
Button
*
>
(
GetWindow
()
);
pButton
->
SetImageAlign
(
static_cast
<
ImageAlign
>
(
nAlignment
)
);
pButton
->
SetImageAlign
(
static_cast
<
ImageAlign
>
(
nAlignment
)
);
}
}
}
}
}
break
;
break
;
...
@@ -275,6 +277,7 @@ void VCLXGraphicControl::setProperty( const OUString& PropertyName, const ::com:
...
@@ -275,6 +277,7 @@ void VCLXGraphicControl::setProperty( const OUString& PropertyName, const ::com:
{
{
sal_Int16
nImagePosition
=
2
;
sal_Int16
nImagePosition
=
2
;
OSL_VERIFY
(
Value
>>=
nImagePosition
);
OSL_VERIFY
(
Value
>>=
nImagePosition
);
Button
*
pButton
=
static_cast
<
Button
*
>
(
GetWindow
()
);
pButton
->
SetImageAlign
(
::
toolkit
::
translateImagePosition
(
nImagePosition
)
);
pButton
->
SetImageAlign
(
::
toolkit
::
translateImagePosition
(
nImagePosition
)
);
}
}
}
}
...
...
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