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
5d8bbe5f
Kaydet (Commit)
5d8bbe5f
authored
Haz 12, 2013
tarafından
Andre Fischer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
122453: Initialize and update units of PosSize panel spin fields.
üst
f7f162ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
PosSizePropertyPanel.cxx
svx/source/sidebar/possize/PosSizePropertyPanel.cxx
+9
-0
No files found.
svx/source/sidebar/possize/PosSizePropertyPanel.cxx
Dosyayı görüntüle @
5d8bbe5f
...
@@ -720,6 +720,11 @@ void PosSizePropertyPanel::NotifyItemUpdate(
...
@@ -720,6 +720,11 @@ void PosSizePropertyPanel::NotifyItemUpdate(
else
else
mbAdjustEnabled
=
false
;
mbAdjustEnabled
=
false
;
// Pool unit and dialog unit may have changed, make sure that we
// have the current values.
mePoolUnit
=
maTransfWidthControl
.
GetCoreMetric
();
meDlgUnit
=
GetModuleFieldUnit
();
switch
(
nSID
)
switch
(
nSID
)
{
{
case
SID_ATTR_TRANSFORM_WIDTH
:
case
SID_ATTR_TRANSFORM_WIDTH
:
...
@@ -732,6 +737,7 @@ void PosSizePropertyPanel::NotifyItemUpdate(
...
@@ -732,6 +737,7 @@ void PosSizePropertyPanel::NotifyItemUpdate(
long
mlOldWidth1
=
pWidthItem
->
GetValue
();
long
mlOldWidth1
=
pWidthItem
->
GetValue
();
mlOldWidth1
=
Fraction
(
mlOldWidth1
)
/
maUIScale
;
mlOldWidth1
=
Fraction
(
mlOldWidth1
)
/
maUIScale
;
SetFieldUnit
(
*
mpMtrWidth
,
meDlgUnit
,
true
);
SetMetricValue
(
*
mpMtrWidth
,
mlOldWidth1
,
mePoolUnit
);
SetMetricValue
(
*
mpMtrWidth
,
mlOldWidth1
,
mePoolUnit
);
mlOldWidth
=
mlOldWidth1
;
mlOldWidth
=
mlOldWidth1
;
break
;
break
;
...
@@ -751,6 +757,7 @@ void PosSizePropertyPanel::NotifyItemUpdate(
...
@@ -751,6 +757,7 @@ void PosSizePropertyPanel::NotifyItemUpdate(
long
mlOldHeight1
=
pHeightItem
->
GetValue
();
long
mlOldHeight1
=
pHeightItem
->
GetValue
();
mlOldHeight1
=
Fraction
(
mlOldHeight1
)
/
maUIScale
;
mlOldHeight1
=
Fraction
(
mlOldHeight1
)
/
maUIScale
;
SetFieldUnit
(
*
mpMtrHeight
,
meDlgUnit
,
true
);
SetMetricValue
(
*
mpMtrHeight
,
mlOldHeight1
,
mePoolUnit
);
SetMetricValue
(
*
mpMtrHeight
,
mlOldHeight1
,
mePoolUnit
);
mlOldHeight
=
mlOldHeight1
;
mlOldHeight
=
mlOldHeight1
;
break
;
break
;
...
@@ -769,6 +776,7 @@ void PosSizePropertyPanel::NotifyItemUpdate(
...
@@ -769,6 +776,7 @@ void PosSizePropertyPanel::NotifyItemUpdate(
{
{
long
nTmp
=
pItem
->
GetValue
();
long
nTmp
=
pItem
->
GetValue
();
nTmp
=
Fraction
(
nTmp
)
/
maUIScale
;
nTmp
=
Fraction
(
nTmp
)
/
maUIScale
;
SetFieldUnit
(
*
mpMtrPosX
,
meDlgUnit
,
true
);
SetMetricValue
(
*
mpMtrPosX
,
nTmp
,
mePoolUnit
);
SetMetricValue
(
*
mpMtrPosX
,
nTmp
,
mePoolUnit
);
break
;
break
;
}
}
...
@@ -786,6 +794,7 @@ void PosSizePropertyPanel::NotifyItemUpdate(
...
@@ -786,6 +794,7 @@ void PosSizePropertyPanel::NotifyItemUpdate(
{
{
long
nTmp
=
pItem
->
GetValue
();
long
nTmp
=
pItem
->
GetValue
();
nTmp
=
Fraction
(
nTmp
)
/
maUIScale
;
nTmp
=
Fraction
(
nTmp
)
/
maUIScale
;
SetFieldUnit
(
*
mpMtrPosY
,
meDlgUnit
,
true
);
SetMetricValue
(
*
mpMtrPosY
,
nTmp
,
mePoolUnit
);
SetMetricValue
(
*
mpMtrPosY
,
nTmp
,
mePoolUnit
);
break
;
break
;
}
}
...
...
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