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
9b3d96fd
Kaydet (Commit)
9b3d96fd
authored
Kas 20, 2012
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#57059 - fix crasher rendering borders for very small windows.
üst
3d55b14a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
8 deletions
+24
-8
paintfrm.cxx
sw/source/core/layout/paintfrm.cxx
+20
-8
bitmap3.cxx
vcl/source/gdi/bitmap3.cxx
+4
-0
No files found.
sw/source/core/layout/paintfrm.cxx
Dosyayı görüntüle @
9b3d96fd
...
...
@@ -5791,9 +5791,15 @@ static void lcl_paintBitmapExToRect(OutputDevice *pOut, Point aPoint, BitmapEx&
aPageBottomRightShadow
);
pOut
->
DrawBitmapEx
(
pOut
->
PixelToLogic
(
Point
(
aPaintRect
.
Right
()
+
1
,
aPagePxRect
.
Top
()
-
mnShadowPxWidth
)
),
aPageTopRightShadow
);
BitmapEx
aPageRightShadow
=
aPageRightShadowBase
;
aPageRightShadow
.
Scale
(
1
,
aPagePxRect
.
Height
()
-
2
*
(
mnShadowPxWidth
-
1
)
);
lcl_paintBitmapExToRect
(
pOut
,
Point
(
aPaintRect
.
Right
()
+
mnShadowPxWidth
,
aPagePxRect
.
Top
()
+
mnShadowPxWidth
-
1
),
aPageRightShadow
,
RIGHT
);
if
(
aPagePxRect
.
Height
()
>
2
*
mnShadowPxWidth
)
{
BitmapEx
aPageRightShadow
=
aPageRightShadowBase
;
aPageRightShadow
.
Scale
(
1
,
aPagePxRect
.
Height
()
-
2
*
(
mnShadowPxWidth
-
1
)
);
lcl_paintBitmapExToRect
(
pOut
,
Point
(
aPaintRect
.
Right
()
+
mnShadowPxWidth
,
aPagePxRect
.
Top
()
+
mnShadowPxWidth
-
1
),
aPageRightShadow
,
RIGHT
);
}
}
// Left shadows and corners
...
...
@@ -5803,17 +5809,23 @@ static void lcl_paintBitmapExToRect(OutputDevice *pOut, Point aPoint, BitmapEx&
pOut
->
DrawBitmapEx
(
pOut
->
PixelToLogic
(
Point
(
lLeft
,
aPagePxRect
.
Bottom
()
+
1
+
mnShadowPxWidth
-
aPageBottomLeftShadow
.
GetSizePixel
().
Height
()
)
),
aPageBottomLeftShadow
);
pOut
->
DrawBitmapEx
(
pOut
->
PixelToLogic
(
Point
(
lLeft
,
aPagePxRect
.
Top
()
-
mnShadowPxWidth
)
),
aPageTopLeftShadow
);
BitmapEx
aPageLeftShadow
=
aPageLeftShadowBase
;
aPageLeftShadow
.
Scale
(
1
,
aPagePxRect
.
Height
()
-
2
*
(
mnShadowPxWidth
-
1
)
);
lcl_paintBitmapExToRect
(
pOut
,
Point
(
lLeft
,
aPagePxRect
.
Top
()
+
mnShadowPxWidth
-
1
),
aPageLeftShadow
,
LEFT
);
if
(
aPagePxRect
.
Height
()
>
2
*
mnShadowPxWidth
)
{
BitmapEx
aPageLeftShadow
=
aPageLeftShadowBase
;
aPageLeftShadow
.
Scale
(
1
,
aPagePxRect
.
Height
()
-
2
*
(
mnShadowPxWidth
-
1
)
);
lcl_paintBitmapExToRect
(
pOut
,
Point
(
lLeft
,
aPagePxRect
.
Top
()
+
mnShadowPxWidth
-
1
),
aPageLeftShadow
,
LEFT
);
}
}
BitmapEx
aPageBottomShadow
=
aPageBottomShadowBase
;
aPageBottomShadow
.
Scale
(
aPaintRect
.
Width
(),
1
);
lcl_paintBitmapExToRect
(
pOut
,
Point
(
aPaintRect
.
Left
(),
aPagePxRect
.
Bottom
()
+
1
),
aPageBottomShadow
,
BOTTOM
);
lcl_paintBitmapExToRect
(
pOut
,
Point
(
aPaintRect
.
Left
(),
aPagePxRect
.
Bottom
()
+
1
),
aPageBottomShadow
,
BOTTOM
);
BitmapEx
aPageTopShadow
=
aPageTopShadowBase
;
aPageTopShadow
.
Scale
(
aPaintRect
.
Width
(),
1
);
lcl_paintBitmapExToRect
(
pOut
,
Point
(
aPaintRect
.
Left
(),
aPagePxRect
.
Top
()
-
mnShadowPxWidth
),
aPageTopShadow
,
TOP
);
lcl_paintBitmapExToRect
(
pOut
,
Point
(
aPaintRect
.
Left
(),
aPagePxRect
.
Top
()
-
mnShadowPxWidth
),
aPageTopShadow
,
TOP
);
}
//mod #i6193# paint sidebar for notes
...
...
vcl/source/gdi/bitmap3.cxx
Dosyayı görüntüle @
9b3d96fd
...
...
@@ -2175,6 +2175,10 @@ bool Bitmap::ImplScaleConvolution( const double& rScaleX, const double& rScaleY,
int
*
pPixels
;
int
*
pCount
;
// Handle negative scales safely cf. other ImplScale methods
if
(
(
nNewWidth
<
1L
)
||
(
nNewHeight
<
1L
)
)
return
false
;
// Do horizontal filtering
ImplCalculateContributions
(
nWidth
,
nNewWidth
,
aNumberOfContributions
,
pWeights
,
pPixels
,
pCount
,
aKernel
);
pReadAcc
=
AcquireReadAccess
();
...
...
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