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
1bb71c41
Kaydet (Commit)
1bb71c41
authored
May 22, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Simplify GetSize().Height() -> GetHeight()
Change-Id: I8541eb13d82d887ef589a0545d36db88e47932e7
üst
39321c5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tbcontrl.cxx
svx/source/tbxctrls/tbcontrl.cxx
+4
-4
No files found.
svx/source/tbxctrls/tbcontrl.cxx
Dosyayı görüntüle @
1bb71c41
...
@@ -608,7 +608,7 @@ void SvxStyleBox_Impl::SetupEntry(sal_uInt16 nItem, const Rectangle& rRect, Outp
...
@@ -608,7 +608,7 @@ void SvxStyleBox_Impl::SetupEntry(sal_uInt16 nItem, const Rectangle& rRect, Outp
{
{
if
(
nItem
==
0
||
nItem
==
GetEntryCount
()
-
1
)
if
(
nItem
==
0
||
nItem
==
GetEntryCount
()
-
1
)
{
{
unsigned
int
nId
=
(
rRect
.
getY
()
/
rRect
.
Get
Size
().
Height
());
unsigned
int
nId
=
(
rRect
.
getY
()
/
rRect
.
GetHeight
());
if
(
nId
<
MAX_STYLES_ENTRIES
&&
m_pButtons
[
nId
])
if
(
nId
<
MAX_STYLES_ENTRIES
&&
m_pButtons
[
nId
])
m_pButtons
[
nId
]
->
Hide
();
m_pButtons
[
nId
]
->
Hide
();
}
}
...
@@ -735,19 +735,19 @@ void SvxStyleBox_Impl::SetupEntry(sal_uInt16 nItem, const Rectangle& rRect, Outp
...
@@ -735,19 +735,19 @@ void SvxStyleBox_Impl::SetupEntry(sal_uInt16 nItem, const Rectangle& rRect, Outp
// handle the push-button
// handle the push-button
if
(
bIsNotSelected
)
if
(
bIsNotSelected
)
{
{
unsigned
int
nId
=
(
rRect
.
getY
()
/
rRect
.
Get
Size
().
Height
());
unsigned
int
nId
=
(
rRect
.
getY
()
/
rRect
.
GetHeight
());
if
(
nId
<
MAX_STYLES_ENTRIES
&&
m_pButtons
[
nId
])
if
(
nId
<
MAX_STYLES_ENTRIES
&&
m_pButtons
[
nId
])
m_pButtons
[
nId
]
->
Hide
();
m_pButtons
[
nId
]
->
Hide
();
}
}
else
else
{
{
unsigned
int
nId
=
(
rRect
.
getY
()
/
rRect
.
Get
Size
().
Height
());
unsigned
int
nId
=
(
rRect
.
getY
()
/
rRect
.
GetHeight
());
if
(
nId
<
MAX_STYLES_ENTRIES
)
if
(
nId
<
MAX_STYLES_ENTRIES
)
{
{
if
(
m_pButtons
[
nId
]
==
nullptr
)
if
(
m_pButtons
[
nId
]
==
nullptr
)
{
{
m_pButtons
[
nId
]
=
VclPtr
<
MenuButton
>::
Create
(
static_cast
<
vcl
::
Window
*>
(
pDevice
),
WB_FLATBUTTON
|
WB_NOPOINTERFOCUS
);
m_pButtons
[
nId
]
=
VclPtr
<
MenuButton
>::
Create
(
static_cast
<
vcl
::
Window
*>
(
pDevice
),
WB_FLATBUTTON
|
WB_NOPOINTERFOCUS
);
m_pButtons
[
nId
]
->
SetSizePixel
(
Size
(
BUTTON_WIDTH
,
rRect
.
Get
Size
().
Height
()));
m_pButtons
[
nId
]
->
SetSizePixel
(
Size
(
BUTTON_WIDTH
,
rRect
.
GetHeight
()));
m_pButtons
[
nId
]
->
SetPopupMenu
(
&
m_aMenu
);
m_pButtons
[
nId
]
->
SetPopupMenu
(
&
m_aMenu
);
}
}
m_pButtons
[
nId
]
->
SetPosPixel
(
Point
(
rRect
.
GetWidth
()
-
BUTTON_WIDTH
,
rRect
.
getY
()));
m_pButtons
[
nId
]
->
SetPosPixel
(
Point
(
rRect
.
GetWidth
()
-
BUTTON_WIDTH
,
rRect
.
getY
()));
...
...
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