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
a49cd863
Kaydet (Commit)
a49cd863
authored
May 31, 2012
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
targetted cppcheck warning fix reversion
Change-Id: I44bafcc62a127f2d7c6da2952573e4128783c342
üst
3f5762b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
spinfld.cxx
vcl/source/control/spinfld.cxx
+1
-1
outdev3.cxx
vcl/source/gdi/outdev3.cxx
+6
-6
No files found.
vcl/source/control/spinfld.cxx
Dosyayı görüntüle @
a49cd863
...
@@ -696,6 +696,7 @@ void SpinField::ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, Rec
...
@@ -696,6 +696,7 @@ void SpinField::ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, Rec
long
nBottom1
=
aSize
.
Height
()
/
2
;
long
nBottom1
=
aSize
.
Height
()
/
2
;
long
nBottom2
=
aSize
.
Height
()
-
1
;
long
nBottom2
=
aSize
.
Height
()
-
1
;
long
nTop2
=
nBottom1
;
long
nTop2
=
nBottom1
;
long
nTop1
=
0
;
if
(
!
(
aSize
.
Height
()
&
0x01
)
)
if
(
!
(
aSize
.
Height
()
&
0x01
)
)
nBottom1
--
;
nBottom1
--
;
...
@@ -740,7 +741,6 @@ void SpinField::ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, Rec
...
@@ -740,7 +741,6 @@ void SpinField::ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, Rec
}
}
else
else
{
{
long
nTop1
=
0
;
aSize
.
Width
()
-=
CalcZoom
(
GetDrawPixel
(
pDev
,
rStyleSettings
.
GetSpinSize
()
)
);
aSize
.
Width
()
-=
CalcZoom
(
GetDrawPixel
(
pDev
,
rStyleSettings
.
GetSpinSize
()
)
);
rSpinUpArea
=
Rectangle
(
aSize
.
Width
(),
nTop1
,
rOutSz
.
Width
()
-
aDropDownSize
.
Width
()
-
1
,
nBottom1
);
rSpinUpArea
=
Rectangle
(
aSize
.
Width
(),
nTop1
,
rOutSz
.
Width
()
-
aDropDownSize
.
Width
()
-
1
,
nBottom1
);
...
...
vcl/source/gdi/outdev3.cxx
Dosyayı görüntüle @
a49cd863
...
@@ -3601,8 +3601,12 @@ void OutputDevice::ImplDrawWaveLine( long nBaseX, long nBaseY,
...
@@ -3601,8 +3601,12 @@ void OutputDevice::ImplDrawWaveLine( long nBaseX, long nBaseY,
{
{
long nCurX = nStartX;
long nCurX = nStartX;
long nCurY = nStartY;
long nCurY = nStartY;
long nDiffX = 2;
long nDiffY = nHeight-1;
long nDiffY = nHeight-1;
long nCount = nWidth;
long nCount = nWidth;
long nOffY = -1;
long nFreq;
long i;
long nPixWidth;
long nPixWidth;
long nPixHeight;
long nPixHeight;
sal_Bool bDrawPixAsRect;
sal_Bool bDrawPixAsRect;
...
@@ -3642,11 +3646,8 @@ void OutputDevice::ImplDrawWaveLine( long nBaseX, long nBaseY,
...
@@ -3642,11 +3646,8 @@ void OutputDevice::ImplDrawWaveLine( long nBaseX, long nBaseY,
}
}
else
else
{
{
long
nDiffX
=
2
;
long
nOffY
=
-
1
;
long
i
;
nCurY += nDiffY;
nCurY += nDiffY;
long
nFreq
=
nCount
/
(
nDiffX
+
nDiffY
);
nFreq = nCount / (nDiffX+nDiffY);
while ( nFreq-- )
while ( nFreq-- )
{
{
for( i = nDiffY; i; --i )
for( i = nDiffY; i; --i )
...
@@ -4914,6 +4915,7 @@ long OutputDevice::ImplGetTextLines( ImplMultiTextLineInfo& rLineInfo,
...
@@ -4914,6 +4915,7 @@ long OutputDevice::ImplGetTextLines( ImplMultiTextLineInfo& rLineInfo,
// auf mehr als Zwei Zeilen gebrochen wird...
// auf mehr als Zwei Zeilen gebrochen wird...
if ( xHyph.is() )
if ( xHyph.is() )
{
{
sal_Unicode cAlternateReplChar = 0;
i18n::Boundary aBoundary = xBI->getWordBoundary( aText, nBreakPos, rDefLocale, ::com::sun::star::i18n::WordType::DICTIONARY_WORD, sal_True );
i18n::Boundary aBoundary = xBI->getWordBoundary( aText, nBreakPos, rDefLocale, ::com::sun::star::i18n::WordType::DICTIONARY_WORD, sal_True );
// sal_uInt16 nWordStart = nBreakPos;
// sal_uInt16 nWordStart = nBreakPos;
// sal_uInt16 nBreakPos_OLD = nBreakPos;
// sal_uInt16 nBreakPos_OLD = nBreakPos;
...
@@ -4985,8 +4987,6 @@ long OutputDevice::ImplGetTextLines( ImplMultiTextLineInfo& rLineInfo,
...
@@ -4985,8 +4987,6 @@ long OutputDevice::ImplGetTextLines( ImplMultiTextLineInfo& rLineInfo,
DBG_ASSERT( ( nAltEnd - nAltStart ) == 1, "Alternate: Falsche Annahme!" );
DBG_ASSERT( ( nAltEnd - nAltStart ) == 1, "Alternate: Falsche Annahme!" );
sal_Unicode
cAlternateReplChar
=
0
;
if ( nTxtEnd > nTxtStart )
if ( nTxtEnd > nTxtStart )
cAlternateReplChar = aAlt.GetChar( nAltStart );
cAlternateReplChar = aAlt.GetChar( nAltStart );
...
...
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