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
304f5068
Kaydet (Commit)
304f5068
authored
Nis 15, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:refcounting
Change-Id: I4f696bdb7b37da5949182d522b0d3c6c41fdc756
üst
10989219
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
border.cxx
drawinglayer/qa/unit/border.cxx
+3
-2
No files found.
drawinglayer/qa/unit/border.cxx
Dosyayı görüntüle @
304f5068
...
...
@@ -17,6 +17,7 @@
#include <drawinglayer/geometry/viewinformation2d.hxx>
#include <drawinglayer/primitive2d/borderlineprimitive2d.hxx>
#include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx>
#include <rtl/ref.hxx>
using
namespace
com
::
sun
::
star
;
...
...
@@ -51,11 +52,11 @@ void DrawinglayerBorderTest::testDoubleDecompositionSolid()
basegfx
::
BColor
aColorGap
;
bool
bHasGapColor
=
false
;
sal_Int16
nStyle
=
table
::
BorderLineStyle
::
DOUBLE
;
drawinglayer
::
primitive2d
::
BorderLinePrimitive2D
aBorder
(
aStart
,
aEnd
,
fLeftWidth
,
fDistance
,
fRightWidth
,
fExtendLeftStart
,
fExtendLeftEnd
,
fExtendRightStart
,
fExtendRightEnd
,
aColorRight
,
aColorLeft
,
aColorGap
,
bHasGapColor
,
nStyle
);
rtl
::
Reference
<
drawinglayer
::
primitive2d
::
BorderLinePrimitive2D
>
aBorder
(
new
drawinglayer
::
primitive2d
::
BorderLinePrimitive2D
(
aStart
,
aEnd
,
fLeftWidth
,
fDistance
,
fRightWidth
,
fExtendLeftStart
,
fExtendLeftEnd
,
fExtendRightStart
,
fExtendRightEnd
,
aColorRight
,
aColorLeft
,
aColorGap
,
bHasGapColor
,
nStyle
)
);
// Decompose it into polygons.
drawinglayer
::
geometry
::
ViewInformation2D
aView
;
drawinglayer
::
primitive2d
::
Primitive2DContainer
aContainer
=
aBorder
.
get2DDecomposition
(
aView
);
drawinglayer
::
primitive2d
::
Primitive2DContainer
aContainer
=
aBorder
->
get2DDecomposition
(
aView
);
// Make sure it results in two borders as it's a double one.
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
std
::
size_t
>
(
2
),
aContainer
.
size
());
...
...
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