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
0b255720
Kaydet (Commit)
0b255720
authored
Haz 15, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix indentation
Change-Id: I687f7020284d86a880a0a5db31658f01edf8e850
üst
1bd2fe89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
map.cxx
vcl/source/outdev/map.cxx
+18
-18
No files found.
vcl/source/outdev/map.cxx
Dosyayı görüntüle @
0b255720
...
@@ -366,13 +366,13 @@ static long ImplLogicToPixel( long n, long nDPI, long nMapNum, long nMapDenom,
...
@@ -366,13 +366,13 @@ static long ImplLogicToPixel( long n, long nDPI, long nMapNum, long nMapDenom,
#if (SAL_TYPES_SIZEOFLONG < 8)
#if (SAL_TYPES_SIZEOFLONG < 8)
if
(
(
+
n
<
nThres
)
&&
(
-
n
<
nThres
)
)
if
(
(
+
n
<
nThres
)
&&
(
-
n
<
nThres
)
)
{
{
n
*=
nMapNum
*
nDPI
;
n
*=
nMapNum
*
nDPI
;
if
(
nMapDenom
!=
1
)
if
(
nMapDenom
!=
1
)
{
{
n
=
(
2
*
n
)
/
nMapDenom
;
n
=
(
2
*
n
)
/
nMapDenom
;
if
(
n
<
0
)
--
n
;
else
++
n
;
if
(
n
<
0
)
--
n
;
else
++
n
;
n
/=
2
;
n
/=
2
;
}
}
}
}
else
else
#else
#else
...
@@ -381,17 +381,17 @@ static long ImplLogicToPixel( long n, long nDPI, long nMapNum, long nMapDenom,
...
@@ -381,17 +381,17 @@ static long ImplLogicToPixel( long n, long nDPI, long nMapNum, long nMapDenom,
assert
(
nMapNum
==
0
||
std
::
abs
(
n
)
<
std
::
numeric_limits
<
long
>::
max
()
/
nMapNum
/
nDPI
);
//detect overflows
assert
(
nMapNum
==
0
||
std
::
abs
(
n
)
<
std
::
numeric_limits
<
long
>::
max
()
/
nMapNum
/
nDPI
);
//detect overflows
#endif
#endif
{
{
sal_Int64
n64
=
n
;
sal_Int64
n64
=
n
;
n64
*=
nMapNum
;
n64
*=
nMapNum
;
n64
*=
nDPI
;
n64
*=
nDPI
;
if
(
nMapDenom
==
1
)
if
(
nMapDenom
==
1
)
n
=
(
long
)
n64
;
n
=
(
long
)
n64
;
else
else
{
{
n
=
(
long
)(
2
*
n64
/
nMapDenom
);
n
=
(
long
)(
2
*
n64
/
nMapDenom
);
if
(
n
<
0
)
--
n
;
else
++
n
;
if
(
n
<
0
)
--
n
;
else
++
n
;
n
/=
2
;
n
/=
2
;
}
}
}
}
return
n
;
return
n
;
}
}
...
...
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