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
c61d0c60
Kaydet (Commit)
c61d0c60
authored
Tem 29, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
function abs given an argument of type long but has parameter of type int
Change-Id: Ibc64a17dc4a779e05946dfe5d1d12109e643a7fd
üst
e9c50225
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
text.cxx
vcl/source/outdev/text.cxx
+6
-2
No files found.
vcl/source/outdev/text.cxx
Dosyayı görüntüle @
c61d0c60
...
@@ -17,6 +17,10 @@
...
@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include <sal/config.h>
#include <cmath>
#include <sal/types.h>
#include <sal/types.h>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
...
@@ -1655,7 +1659,7 @@ void OutputDevice::ImplDrawText( OutputDevice& rTargetDevice, const Rectangle& r
...
@@ -1655,7 +1659,7 @@ void OutputDevice::ImplDrawText( OutputDevice& rTargetDevice, const Rectangle& r
nIndex
,
nLineLen
);
nIndex
,
nLineLen
);
long
lc_x1
=
pCaretXArray
[
2
*
(
nMnemonicPos
-
nIndex
)];
long
lc_x1
=
pCaretXArray
[
2
*
(
nMnemonicPos
-
nIndex
)];
long
lc_x2
=
pCaretXArray
[
2
*
(
nMnemonicPos
-
nIndex
)
+
1
];
long
lc_x2
=
pCaretXArray
[
2
*
(
nMnemonicPos
-
nIndex
)
+
1
];
nMnemonicWidth
=
rTargetDevice
.
LogicWidthToDeviceCoordinate
(
::
abs
((
long
)(
lc_x1
-
lc_x2
)
)
);
nMnemonicWidth
=
rTargetDevice
.
LogicWidthToDeviceCoordinate
(
std
::
abs
(
lc_x1
-
lc_x2
)
);
Point
aTempPos
=
rTargetDevice
.
LogicToPixel
(
aPos
);
Point
aTempPos
=
rTargetDevice
.
LogicToPixel
(
aPos
);
nMnemonicX
=
rTargetDevice
.
GetOutOffXPixel
()
+
aTempPos
.
X
()
+
rTargetDevice
.
ImplLogicWidthToDevicePixel
(
std
::
min
(
lc_x1
,
lc_x2
)
);
nMnemonicX
=
rTargetDevice
.
GetOutOffXPixel
()
+
aTempPos
.
X
()
+
rTargetDevice
.
ImplLogicWidthToDevicePixel
(
std
::
min
(
lc_x1
,
lc_x2
)
);
...
@@ -1723,7 +1727,7 @@ void OutputDevice::ImplDrawText( OutputDevice& rTargetDevice, const Rectangle& r
...
@@ -1723,7 +1727,7 @@ void OutputDevice::ImplDrawText( OutputDevice& rTargetDevice, const Rectangle& r
/*sal_Bool bRet =*/
_rLayout
.
GetCaretPositions
(
aStr
,
pCaretXArray
,
0
,
aStr
.
getLength
()
);
/*sal_Bool bRet =*/
_rLayout
.
GetCaretPositions
(
aStr
,
pCaretXArray
,
0
,
aStr
.
getLength
()
);
long
lc_x1
=
pCaretXArray
[
2
*
(
nMnemonicPos
)];
long
lc_x1
=
pCaretXArray
[
2
*
(
nMnemonicPos
)];
long
lc_x2
=
pCaretXArray
[
2
*
(
nMnemonicPos
)
+
1
];
long
lc_x2
=
pCaretXArray
[
2
*
(
nMnemonicPos
)
+
1
];
nMnemonicWidth
=
rTargetDevice
.
LogicWidthToDeviceCoordinate
(
::
abs
((
long
)(
lc_x1
-
lc_x2
)
)
);
nMnemonicWidth
=
rTargetDevice
.
LogicWidthToDeviceCoordinate
(
std
::
abs
(
lc_x1
-
lc_x2
)
);
Point
aTempPos
=
rTargetDevice
.
LogicToPixel
(
aPos
);
Point
aTempPos
=
rTargetDevice
.
LogicToPixel
(
aPos
);
nMnemonicX
=
rTargetDevice
.
GetOutOffXPixel
()
+
aTempPos
.
X
()
+
rTargetDevice
.
ImplLogicWidthToDevicePixel
(
std
::
min
(
lc_x1
,
lc_x2
)
);
nMnemonicX
=
rTargetDevice
.
GetOutOffXPixel
()
+
aTempPos
.
X
()
+
rTargetDevice
.
ImplLogicWidthToDevicePixel
(
std
::
min
(
lc_x1
,
lc_x2
)
);
...
...
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