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
2fbc3a4e
Kaydet (Commit)
2fbc3a4e
authored
Şub 14, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
reduce scope of maBmp
Change-Id: I8605ec535bc8a948cf0dc0dd194e673b73939035
üst
16f5f716
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
iras.cxx
filter/source/graphicfilter/iras/iras.cxx
+3
-4
No files found.
filter/source/graphicfilter/iras/iras.cxx
Dosyayı görüntüle @
2fbc3a4e
...
@@ -43,7 +43,6 @@ private:
...
@@ -43,7 +43,6 @@ private:
SvStream
&
m_rRAS
;
// Die einzulesende RAS-Datei
SvStream
&
m_rRAS
;
// Die einzulesende RAS-Datei
bool
mbStatus
;
bool
mbStatus
;
Bitmap
maBmp
;
sal_Int32
mnWidth
,
mnHeight
;
// Bildausmass in Pixeln
sal_Int32
mnWidth
,
mnHeight
;
// Bildausmass in Pixeln
sal_uInt16
mnDstBitsPerPix
;
sal_uInt16
mnDstBitsPerPix
;
sal_uInt16
mnDstColors
;
sal_uInt16
mnDstColors
;
...
@@ -97,8 +96,8 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
...
@@ -97,8 +96,8 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
if
(
!
mbStatus
)
if
(
!
mbStatus
)
return
false
;
return
false
;
maBmp
=
Bitmap
(
Size
(
mnWidth
,
mnHeight
),
mnDstBitsPerPix
);
Bitmap
aBmp
(
Size
(
mnWidth
,
mnHeight
),
mnDstBitsPerPix
);
Bitmap
::
ScopedWriteAccess
pAcc
(
m
aBmp
);
Bitmap
::
ScopedWriteAccess
pAcc
(
aBmp
);
if
(
pAcc
==
nullptr
)
if
(
pAcc
==
nullptr
)
return
false
;
return
false
;
...
@@ -163,7 +162,7 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
...
@@ -163,7 +162,7 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
mbStatus
=
ImplReadBody
(
pAcc
.
get
());
mbStatus
=
ImplReadBody
(
pAcc
.
get
());
if
(
mbStatus
)
if
(
mbStatus
)
rGraphic
=
m
aBmp
;
rGraphic
=
aBmp
;
return
mbStatus
;
return
mbStatus
;
}
}
...
...
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