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
525dfeaf
Kaydet (Commit)
525dfeaf
authored
May 30, 2013
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i122395 Adapted mapping of content to more general way
üst
3f1d43bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
metafileprimitive2d.cxx
drawinglayer/source/primitive2d/metafileprimitive2d.cxx
+14
-6
No files found.
drawinglayer/source/primitive2d/metafileprimitive2d.cxx
Dosyayı görüntüle @
525dfeaf
...
...
@@ -2980,6 +2980,9 @@ namespace
if
(
xSubContent
.
hasElements
())
{
// prepare sub-content transform
basegfx
::
B2DHomMatrix
aSubTransform
;
// create SourceRange
const
basegfx
::
B2DRange
aSourceRange
(
rContent
.
GetPrefMapMode
().
GetOrigin
().
X
(),
...
...
@@ -2990,17 +2993,22 @@ namespace
// apply mapping if aTargetRange and aSourceRange are not equal
if
(
!
aSourceRange
.
equal
(
aTargetRange
))
{
basegfx
::
B2DHomMatrix
aTransform
;
aTransform
.
translate
(
-
aSourceRange
.
getMinX
(),
-
aSourceRange
.
getMinY
());
aTransform
.
scale
(
aSubTransform
.
translate
(
-
aSourceRange
.
getMinX
(),
-
aSourceRange
.
getMinY
());
aSubTransform
.
scale
(
aTargetRange
.
getWidth
()
/
(
basegfx
::
fTools
::
equalZero
(
aSourceRange
.
getWidth
())
?
1.0
:
aSourceRange
.
getWidth
()),
aTargetRange
.
getHeight
()
/
(
basegfx
::
fTools
::
equalZero
(
aSourceRange
.
getHeight
())
?
1.0
:
aSourceRange
.
getHeight
()));
aTransform
.
translate
(
aTargetRange
.
getMinX
(),
aTargetRange
.
getMinY
());
aSubTransform
.
translate
(
aTargetRange
.
getMinX
(),
aTargetRange
.
getMinY
());
}
// apply general current transformation
aSubTransform
=
rPropertyHolders
.
Current
().
getTransformation
()
*
aSubTransform
;
// evtl. embed sub-content to it's transformation
if
(
!
aSubTransform
.
isIdentity
())
{
const
drawinglayer
::
primitive2d
::
Primitive2DReference
aEmbeddedTransform
(
new
drawinglayer
::
primitive2d
::
TransformPrimitive2D
(
aTransform
,
a
Sub
Transform
,
xSubContent
));
xSubContent
=
drawinglayer
::
primitive2d
::
Primitive2DSequence
(
&
aEmbeddedTransform
,
1
);
...
...
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