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
2ec9d9dd
Kaydet (Commit)
2ec9d9dd
authored
Mar 31, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: tdf#90228 1.06 turns into a monster
Change-Id: I8ebb57fe8b94da2569593ffa7cf374cae64a846a
üst
026b17b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vclxwindow.cxx
toolkit/source/awt/vclxwindow.cxx
+3
-2
No files found.
toolkit/source/awt/vclxwindow.cxx
Dosyayı görüntüle @
2ec9d9dd
...
@@ -2331,8 +2331,9 @@ void VCLXWindow::setZoom( float fZoomX, float /*fZoomY*/ ) throw(::com::sun::sta
...
@@ -2331,8 +2331,9 @@ void VCLXWindow::setZoom( float fZoomX, float /*fZoomY*/ ) throw(::com::sun::sta
// The implicit conversion from float to double can result in a precision loss, i.e. 1.2 is converted to
// The implicit conversion from float to double can result in a precision loss, i.e. 1.2 is converted to
// 1.200000000047something. To prevent this, we convert explicitly to double, and round it.
// 1.200000000047something. To prevent this, we convert explicitly to double, and round it.
double
nZoom
(
fZoomX
);
double
nZoom
(
fZoomX
);
nZoom
=
::
rtl
::
math
::
round
(
nZoom
,
4
);
Fraction
aZoom
(
::
rtl
::
math
::
round
(
nZoom
,
4
));
GetWindow
()
->
SetZoom
(
Fraction
(
nZoom
)
);
aZoom
.
ReduceInaccurate
(
10
);
// to avoid runovers and BigInt mapping
GetWindow
()
->
SetZoom
(
aZoom
);
}
}
}
}
...
...
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