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
0a9b9978
Kaydet (Commit)
0a9b9978
authored
May 18, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: fix the MapMode ctor too to limit precision to 32 bits
Change-Id: Ifc27d4bd9225581197332c8e21c476eed5d13eb7
üst
21be3257
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
mapmod.cxx
vcl/source/gdi/mapmod.cxx
+6
-0
No files found.
vcl/source/gdi/mapmod.cxx
Dosyayı görüntüle @
0a9b9978
...
@@ -33,6 +33,10 @@ struct MapMode::ImplMapMode
...
@@ -33,6 +33,10 @@ struct MapMode::ImplMapMode
sal_uLong
mnRefCount
;
sal_uLong
mnRefCount
;
MapUnit
meUnit
;
MapUnit
meUnit
;
Point
maOrigin
;
Point
maOrigin
;
// NOTE: these Fraction must NOT have more than 32 bits precision
// because ReadFraction / WriteFraction do only 32 bits, so more than
// that cannot be stored in MetaFiles!
// => call ReduceInaccurate whenever setting these
Fraction
maScaleX
;
Fraction
maScaleX
;
Fraction
maScaleY
;
Fraction
maScaleY
;
bool
mbSimple
;
bool
mbSimple
;
...
@@ -158,6 +162,8 @@ MapMode::MapMode( MapUnit eUnit, const Point& rLogicOrg,
...
@@ -158,6 +162,8 @@ MapMode::MapMode( MapUnit eUnit, const Point& rLogicOrg,
mpImplMapMode
->
maOrigin
=
rLogicOrg
;
mpImplMapMode
->
maOrigin
=
rLogicOrg
;
mpImplMapMode
->
maScaleX
=
rScaleX
;
mpImplMapMode
->
maScaleX
=
rScaleX
;
mpImplMapMode
->
maScaleY
=
rScaleY
;
mpImplMapMode
->
maScaleY
=
rScaleY
;
mpImplMapMode
->
maScaleX
.
ReduceInaccurate
(
32
);
mpImplMapMode
->
maScaleY
.
ReduceInaccurate
(
32
);
}
}
MapMode
::~
MapMode
()
MapMode
::~
MapMode
()
...
...
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