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
dbd0cea6
Kaydet (Commit)
dbd0cea6
authored
Tem 05, 2012
tarafından
Andre Fischer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i120096# Detect empty polygon in Region constructor and set impl object accordingly.
Reported by: Du Jing Fixed by: Andre Fischer
üst
2df66d39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
region.hxx
vcl/inc/vcl/region.hxx
+1
-0
region.cxx
vcl/source/gdi/region.cxx
+11
-1
No files found.
vcl/inc/vcl/region.hxx
Dosyayı görüntüle @
dbd0cea6
...
@@ -61,6 +61,7 @@ private:
...
@@ -61,6 +61,7 @@ private:
SAL_DLLPRIVATE
void
ImplCopyData
();
SAL_DLLPRIVATE
void
ImplCopyData
();
SAL_DLLPRIVATE
void
ImplCreateRectRegion
(
const
Rectangle
&
rRect
);
SAL_DLLPRIVATE
void
ImplCreateRectRegion
(
const
Rectangle
&
rRect
);
SAL_DLLPRIVATE
void
ImplCreatePolyPolyRegion
(
const
PolyPolygon
&
rPolyPoly
);
SAL_DLLPRIVATE
void
ImplCreatePolyPolyRegion
(
const
PolyPolygon
&
rPolyPoly
);
SAL_DLLPRIVATE
void
ImplCreatePolyPolyRegion
(
const
basegfx
::
B2DPolyPolygon
&
rPolyPoly
);
SAL_DLLPRIVATE
void
ImplPolyPolyRegionToBandRegionFunc
();
SAL_DLLPRIVATE
void
ImplPolyPolyRegionToBandRegionFunc
();
SAL_DLLPRIVATE
inline
void
ImplPolyPolyRegionToBandRegion
();
SAL_DLLPRIVATE
inline
void
ImplPolyPolyRegionToBandRegion
();
SAL_DLLPRIVATE
const
ImplRegion
*
ImplGetImplRegion
()
const
{
return
mpImplRegion
;
}
SAL_DLLPRIVATE
const
ImplRegion
*
ImplGetImplRegion
()
const
{
return
mpImplRegion
;
}
...
...
vcl/source/gdi/region.cxx
Dosyayı görüntüle @
dbd0cea6
...
@@ -1136,7 +1136,7 @@ Region::Region( const basegfx::B2DPolyPolygon& rPolyPoly )
...
@@ -1136,7 +1136,7 @@ Region::Region( const basegfx::B2DPolyPolygon& rPolyPoly )
DBG_CTOR
(
Region
,
ImplDbgTestRegion
);
DBG_CTOR
(
Region
,
ImplDbgTestRegion
);
DBG_CHKOBJ
(
&
rPolyPoly
,
PolyPolygon
,
NULL
);
DBG_CHKOBJ
(
&
rPolyPoly
,
PolyPolygon
,
NULL
);
mpImplRegion
=
new
Impl
Region
(
rPolyPoly
);
ImplCreatePolyPoly
Region
(
rPolyPoly
);
}
}
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
...
@@ -1226,6 +1226,16 @@ void Region::ImplCreatePolyPolyRegion( const PolyPolygon& rPolyPoly )
...
@@ -1226,6 +1226,16 @@ void Region::ImplCreatePolyPolyRegion( const PolyPolygon& rPolyPoly )
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
void
Region
::
ImplCreatePolyPolyRegion
(
const
basegfx
::
B2DPolyPolygon
&
rPolyPoly
)
{
if
(
rPolyPoly
.
count
()
==
0
||
rPolyPoly
.
getB2DRange
().
isEmpty
())
mpImplRegion
=
(
ImplRegion
*
)(
&
aImplEmptyRegion
);
else
mpImplRegion
=
new
ImplRegion
(
rPolyPoly
);
}
// -----------------------------------------------------------------------
void
Region
::
ImplPolyPolyRegionToBandRegionFunc
()
void
Region
::
ImplPolyPolyRegionToBandRegionFunc
()
{
{
// ensure to subdivide when bezier segemnts are used, it's going to
// ensure to subdivide when bezier segemnts are used, it's going to
...
...
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