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
9957d585
Kaydet (Commit)
9957d585
authored
Ock 30, 2014
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i12355 Corrected case that in WinSalGraphics::setClipRegion an empty Polygon is handed over
üst
342ebf4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
salgdi.cxx
vcl/win/source/gdi/salgdi.cxx
+15
-3
No files found.
vcl/win/source/gdi/salgdi.cxx
Dosyayı görüntüle @
9957d585
...
...
@@ -1017,13 +1017,19 @@ bool WinSalGraphics::setClipRegion( const Region& i_rClip )
}
// create clip region from ClipRgnData
if
(
mpClipRgnData
->
rdh
.
nCount
==
1
)
if
(
0
==
mpClipRgnData
->
rdh
.
nCount
)
{
// #123585# region is empty; this may happen when e.g. a PolyPolygon is given
// that contains no polygons or only empty ones (no width/height). This is
// perfectly fine and we are done, except setting it (see end of method)
}
else
if
(
1
==
mpClipRgnData
->
rdh
.
nCount
)
{
RECT
*
pRect
=
&
(
mpClipRgnData
->
rdh
.
rcBound
);
mhRegion
=
CreateRectRgn
(
pRect
->
left
,
pRect
->
top
,
pRect
->
right
,
pRect
->
bottom
);
}
else
if
(
mpClipRgnData
->
rdh
.
nCount
>
1
)
else
if
(
mpClipRgnData
->
rdh
.
nCount
>
1
)
{
ULONG
nSize
=
mpClipRgnData
->
rdh
.
nRgnSize
+
sizeof
(
RGNDATAHEADER
);
mhRegion
=
ExtCreateRegion
(
NULL
,
nSize
,
mpClipRgnData
);
...
...
@@ -1063,8 +1069,14 @@ bool WinSalGraphics::setClipRegion( const Region& i_rClip )
//
//bool bBla = true;
}
else
{
// #123585# See above, this is a valid case, execute it
SelectClipRgn
(
getHDC
(),
0
);
}
return
mhRegion
!=
0
;
// #123585# retval no longer dependent of mhRegion, see TaskId comments above
return
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