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
82b04504
Kaydet (Commit)
82b04504
authored
May 14, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n#760294 svtools: allow border gap < 1pt
Change-Id: I3ac70ea343edde406e78845a112aabcbd8ff65b1
üst
cb235067
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ctrlbox.cxx
svtools/source/control/ctrlbox.cxx
+5
-4
No files found.
svtools/source/control/ctrlbox.cxx
Dosyayı görüntüle @
82b04504
...
...
@@ -61,6 +61,7 @@
#define EXTRAFONTSIZE 5
#define GAPTOEXTRAPREVIEW 10
#define MAXPREVIEWWIDTH 120
#define MINGAPWIDTH 2
#define FONTNAMEBOXMRUENTRIESFILE "/user/config/fontnameboxmruentries"
...
...
@@ -338,9 +339,9 @@ long BorderWidthImpl::GetGap( long nWidth ) const
if
(
(
m_nFlags
&
CHANGE_DIST
)
>
0
)
result
=
static_cast
<
long
>
(
m_nRateGap
*
nWidth
);
// Avoid having too small distances (less than 1pt)
if
(
result
<
20
&&
m_nRate1
>
0
&&
m_nRate2
>
0
)
result
=
20
;
// Avoid having too small distances (less than
0.
1pt)
if
(
result
<
MINGAPWIDTH
&&
m_nRate1
>
0
&&
m_nRate2
>
0
)
result
=
MINGAPWIDTH
;
return
result
;
}
...
...
@@ -380,7 +381,7 @@ long BorderWidthImpl::GuessWidth( long nLine1, long nLine2, long nGap )
bool
bGapChange
=
(
m_nFlags
&
CHANGE_DIST
)
>
0
;
double
nWidthGap
=
lcl_getGuessedWidth
(
nGap
,
m_nRateGap
,
bGapChange
);
if
(
bGapChange
&&
nGap
>
20
)
if
(
bGapChange
&&
nGap
>
MINGAPWIDTH
)
aToCompare
.
push_back
(
nWidthGap
);
else
if
(
!
bGapChange
&&
nWidthGap
<
0
)
bInvalid
=
true
;
...
...
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