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
d13469c3
Kaydet (Commit)
d13469c3
authored
Ock 20, 2011
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed lines width guessing: gap are no smaller than 1pt
üst
5aa3e4a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
borderline_test.cxx
editeng/qa/items/borderline_test.cxx
+1
-1
frmitems.cxx
editeng/source/items/frmitems.cxx
+3
-3
bordrhdl.cxx
xmloff/source/style/bordrhdl.cxx
+2
-0
No files found.
editeng/qa/items/borderline_test.cxx
Dosyayı görüntüle @
d13469c3
...
...
@@ -80,7 +80,7 @@ void BorderLineTest::testGuessWidthNoMatch()
{
SvxBorderLine
line
;
line
.
GuessLinesWidths
(
DOUBLE
,
1
,
2
,
3
);
TEST_WIDTH
+
1
,
TEST_WIDTH
+
2
,
TEST_WIDTH
+
3
);
CPPUNIT_ASSERT_EQUAL
(
DOUBLE
,
line
.
GetStyle
()
);
CPPUNIT_ASSERT_EQUAL
(
long
(
0
),
line
.
GetWidth
()
);
}
...
...
editeng/source/items/frmitems.cxx
Dosyayı görüntüle @
d13469c3
...
...
@@ -1736,7 +1736,7 @@ lcl_lineToSvxLine(const table::BorderLine& rLine, SvxBorderLine& rSvxLine, sal_B
sal_uInt16
(
bConvert
?
MM100_TO_TWIP
(
rLine
.
LineDistance
)
:
rLine
.
LineDistance
));
}
sal_Bool
bRet
=
rLine
.
InnerLineWidth
>
0
||
rLine
.
OuterLineWidth
>
0
;
sal_Bool
bRet
=
!
rSvxLine
.
isEmpty
()
;
return
bRet
;
}
...
...
@@ -1799,11 +1799,11 @@ SvxBoxItem::LineToSvxLine(const ::com::sun::star::table::BorderLine2& rLine, Svx
}
rSvxLine
.
SetStyle
(
nStyle
);
sal_Bool
bGuessWidth
=
t
rue
;
sal_Bool
bGuessWidth
=
sal_T
rue
;
if
(
rLine
->
LineWidth
)
{
rSvxLine
.
SetWidth
(
bConvert
?
MM100_TO_TWIP_UNSIGNED
(
rLine
->
LineWidth
)
:
rLine
->
LineWidth
);
bGuessWidth
=
f
alse
;
bGuessWidth
=
sal_F
alse
;
}
return
lcl_lineToSvxLine
(
rLine
,
rSvxLine
,
bConvert
,
bGuessWidth
);
...
...
xmloff/source/style/bordrhdl.cxx
Dosyayı görüntüle @
d13469c3
...
...
@@ -272,6 +272,7 @@ sal_Bool XMLBorderHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue
aBorderLine
.
InnerLineWidth
=
0
;
aBorderLine
.
OuterLineWidth
=
0
;
aBorderLine
.
LineDistance
=
0
;
aBorderLine
.
LineWidth
=
0
;
}
// first of all, delete an empty line
...
...
@@ -281,6 +282,7 @@ sal_Bool XMLBorderHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue
aBorderLine
.
InnerLineWidth
=
0
;
aBorderLine
.
OuterLineWidth
=
0
;
aBorderLine
.
LineDistance
=
0
;
aBorderLine
.
LineWidth
=
0
;
}
else
if
(
bHasWidth
)
{
...
...
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