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
9f072ee8
Kaydet (Commit)
9f072ee8
authored
Kas 17, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
don't reuse old var remnants
Change-Id: I1074d0431695ec21e22cdef334dbe419763e7ba2
üst
d93c89dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
ios2met.cxx
filter/source/graphicfilter/ios2met/ios2met.cxx
+9
-11
No files found.
filter/source/graphicfilter/ios2met/ios2met.cxx
Dosyayı görüntüle @
9f072ee8
...
...
@@ -773,20 +773,18 @@ Color OS2METReader::GetPaletteColor(sal_uInt32 nIndex)
sal
::
static_int_cast
<
sal_uInt8
>
(
nIndex
&
0xff
));
}
sal_uInt16
OS2METReader
::
ReadBigEndianWord
()
{
sal_uInt8
nLo
,
nHi
;
sal_uInt8
nLo
(
0
),
nHi
(
0
)
;
pOS2MET
->
ReadUChar
(
nHi
).
ReadUChar
(
nLo
);
return
(((
sal_uInt16
)
nHi
)
<<
8
)
|
(((
sal_uInt16
)
nLo
)
&
0x00ff
);
}
sal_uLong
OS2METReader
::
ReadBigEndian3BytesLong
()
{
sal_uInt16
nLo
;
sal_uInt8
nHi
;
sal_uInt8
nHi
(
0
);
pOS2MET
->
ReadUChar
(
nHi
);
nLo
=
ReadBigEndianWord
();
sal_uInt16
nLo
=
ReadBigEndianWord
();
return
((((
sal_uLong
)
nHi
)
<<
16
)
&
0x00ff0000
)
|
((
sal_uLong
)
nLo
);
}
...
...
@@ -2563,10 +2561,7 @@ void OS2METReader::ReadField(sal_uInt16 nFieldType, sal_uInt16 nFieldSize)
void
OS2METReader
::
ReadOS2MET
(
SvStream
&
rStreamOS2MET
,
GDIMetaFile
&
rGDIMetaFile
)
{
sal_uInt16
nFieldSize
;
sal_uInt16
nFieldType
;
sal_uLong
nPercent
,
nLastPercent
;
sal_uInt8
nMagicByte
;
ErrorCode
=
0
;
...
...
@@ -2632,6 +2627,7 @@ void OS2METReader::ReadOS2MET( SvStream & rStreamOS2MET, GDIMetaFile & rGDIMetaF
sal_uInt64
const
nStartPos
=
pOS2MET
->
Tell
();
sal_uInt64
const
nRemaining
=
pOS2MET
->
remainingSize
();
Callback
(
0
);
nLastPercent
=
0
;
sal_uInt64
nPos
=
pOS2MET
->
Tell
();
...
...
@@ -2644,15 +2640,17 @@ void OS2METReader::ReadOS2MET( SvStream & rStreamOS2MET, GDIMetaFile & rGDIMetaF
nLastPercent
=
nPercent
;
}
nFieldSize
=
ReadBigEndianWord
();
sal_uInt16
nFieldSize
=
ReadBigEndianWord
();
sal_uInt8
nMagicByte
(
0
);
pOS2MET
->
ReadUChar
(
nMagicByte
);
if
(
nMagicByte
!=
0xd3
)
{
pOS2MET
->
SetError
(
SVSTREAM_FILEFORMAT_ERROR
);
ErrorCode
=
7
;
break
;
}
pOS2MET
->
ReadUInt16
(
nFieldType
);
sal_uInt16
nFieldType
(
0
);
pOS2MET
->
ReadUInt16
(
nFieldType
);
pOS2MET
->
SeekRel
(
3
);
nPos
+=
8
;
nFieldSize
-=
8
;
...
...
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