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
8ffcc43c
Kaydet (Commit)
8ffcc43c
authored
Eyl 29, 2011
tarafından
Pierre-André Jacquod
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cppcheck reduce scope of var in filter/..svdfppt.cxx
üst
26b17d5c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
svdfppt.cxx
filter/source/msfilter/svdfppt.cxx
+4
-5
No files found.
filter/source/msfilter/svdfppt.cxx
Dosyayı görüntüle @
8ffcc43c
...
@@ -743,10 +743,10 @@ SdrObject* SdrEscherImport::ProcessObj( SvStream& rSt, DffObjData& rObjData, voi
...
@@ -743,10 +743,10 @@ SdrObject* SdrEscherImport::ProcessObj( SvStream& rSt, DffObjData& rObjData, voi
if
(
!
(
rObjData
.
nSpFlags
&
SP_FGROUP
)
)
// sj: #114758# ...
if
(
!
(
rObjData
.
nSpFlags
&
SP_FGROUP
)
)
// sj: #114758# ...
{
{
PptOEPlaceholderAtom
aPlaceholderAtom
;
PptOEPlaceholderAtom
aPlaceholderAtom
;
sal_Int16
nHeaderFooterInstance
=
-
1
;
if
(
maShapeRecords
.
SeekToContent
(
rSt
,
DFF_msofbtClientData
,
SEEK_FROM_CURRENT_AND_RESTART
)
)
if
(
maShapeRecords
.
SeekToContent
(
rSt
,
DFF_msofbtClientData
,
SEEK_FROM_CURRENT_AND_RESTART
)
)
{
{
sal_Int16
nHeaderFooterInstance
=
-
1
;
DffRecordHeader
aClientDataHd
;
DffRecordHeader
aClientDataHd
;
while
(
(
rSt
.
GetError
()
==
0
)
&&
(
rSt
.
Tell
()
<
maShapeRecords
.
Current
()
->
GetRecEndFilePos
()
)
)
while
(
(
rSt
.
GetError
()
==
0
)
&&
(
rSt
.
Tell
()
<
maShapeRecords
.
Current
()
->
GetRecEndFilePos
()
)
)
{
{
...
@@ -4938,8 +4938,6 @@ void PPTStyleTextPropReader::ReadCharProps( SvStream& rIn, PPTCharPropSet& aChar
...
@@ -4938,8 +4938,6 @@ void PPTStyleTextPropReader::ReadCharProps( SvStream& rIn, PPTCharPropSet& aChar
sal_uInt32
nMask
=
0
;
//TODO: nMask initialized here to suppress warning for now, see corresponding TODO below
sal_uInt32
nMask
=
0
;
//TODO: nMask initialized here to suppress warning for now, see corresponding TODO below
sal_uInt16
nDummy16
;
sal_uInt16
nDummy16
;
sal_Int32
nCharsToRead
;
sal_Int32
nCharsToRead
;
sal_uInt32
nExtParaNibble
=
0
;
sal_uInt16
nStringLen
=
aString
.
Len
();
sal_uInt16
nStringLen
=
aString
.
Len
();
rIn
>>
nDummy16
;
rIn
>>
nDummy16
;
...
@@ -5006,6 +5004,7 @@ void PPTStyleTextPropReader::ReadCharProps( SvStream& rIn, PPTCharPropSet& aChar
...
@@ -5006,6 +5004,7 @@ void PPTStyleTextPropReader::ReadCharProps( SvStream& rIn, PPTCharPropSet& aChar
if
(
nExtParaPos
)
if
(
nExtParaPos
)
{
{
sal_uInt32
nExtBuInd
=
nMask
&
0x3c00
;
sal_uInt32
nExtBuInd
=
nMask
&
0x3c00
;
sal_uInt32
nExtParaNibble
=
0
;
if
(
nExtBuInd
)
if
(
nExtBuInd
)
nExtBuInd
=
(
aSet
.
mnFlags
&
0x3c00
)
>>
10
;
nExtBuInd
=
(
aSet
.
mnFlags
&
0x3c00
)
>>
10
;
if
(
nExtBuInd
<
aStyleTextProp9
.
size
()
)
if
(
nExtBuInd
<
aStyleTextProp9
.
size
()
)
...
@@ -5518,10 +5517,10 @@ void PPTPortionObj::ApplyTo( SfxItemSet& rSet, SdrPowerPointImport& rManager, s
...
@@ -5518,10 +5517,10 @@ void PPTPortionObj::ApplyTo( SfxItemSet& rSet, SdrPowerPointImport& rManager, s
if
(
aSize
.
Height
()
>
64
)
if
(
aSize
.
Height
()
>
64
)
aSize
.
Height
()
=
64
;
aSize
.
Height
()
=
64
;
sal_uLong
nRt
=
0
,
nGn
=
0
,
nBl
=
0
;
BitmapReadAccess
*
pAcc
=
aBmp
.
AcquireReadAccess
();
BitmapReadAccess
*
pAcc
=
aBmp
.
AcquireReadAccess
();
if
(
pAcc
)
if
(
pAcc
)
{
{
sal_uLong
nRt
=
0
,
nGn
=
0
,
nBl
=
0
;
const
long
nWidth
=
aSize
.
Width
();
const
long
nWidth
=
aSize
.
Width
();
const
long
nHeight
=
aSize
.
Height
();
const
long
nHeight
=
aSize
.
Height
();
...
@@ -6113,13 +6112,13 @@ void PPTParagraphObj::ApplyTo( SfxItemSet& rSet, boost::optional< sal_Int16 >&
...
@@ -6113,13 +6112,13 @@ void PPTParagraphObj::ApplyTo( SfxItemSet& rSet, boost::optional< sal_Int16 >&
}
}
// Paragraph Spacing
// Paragraph Spacing
sal_uInt32
nFontHeight
=
0
;
bIsHardAttribute
=
(
(
sal_uInt32
)
GetAttrib
(
PPT_ParaAttr_UpperDist
,
nUpperDist
,
nDestinationInstance
)
+
bIsHardAttribute
=
(
(
sal_uInt32
)
GetAttrib
(
PPT_ParaAttr_UpperDist
,
nUpperDist
,
nDestinationInstance
)
+
(
sal_uInt32
)
GetAttrib
(
PPT_ParaAttr_LowerDist
,
nLowerDist
,
nDestinationInstance
)
)
!=
0
;
(
sal_uInt32
)
GetAttrib
(
PPT_ParaAttr_LowerDist
,
nLowerDist
,
nDestinationInstance
)
)
!=
0
;
if
(
(
nUpperDist
>
0
)
||
(
nLowerDist
>
0
)
)
if
(
(
nUpperDist
>
0
)
||
(
nLowerDist
>
0
)
)
{
{
if
(
mnPortionCount
)
if
(
mnPortionCount
)
{
{
sal_uInt32
nFontHeight
=
0
;
mpPortionList
[
mnPortionCount
-
1
]
->
GetAttrib
(
PPT_CharAttr_FontHeight
,
nFontHeight
,
nDestinationInstance
);
mpPortionList
[
mnPortionCount
-
1
]
->
GetAttrib
(
PPT_CharAttr_FontHeight
,
nFontHeight
,
nDestinationInstance
);
if
(
((
sal_Int16
)
nUpperDist
)
>
0
)
if
(
((
sal_Int16
)
nUpperDist
)
>
0
)
nUpperDist
=
-
(
sal_Int16
)(
(
nFontHeight
*
nUpperDist
*
100
)
/
1000
);
nUpperDist
=
-
(
sal_Int16
)(
(
nFontHeight
*
nUpperDist
*
100
)
/
1000
);
...
...
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