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
e20a55ea
Kaydet (Commit)
e20a55ea
authored
Tem 21, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
check return of osl_setFilePos
üst
21fc8b9e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
salprnpsp.cxx
vcl/unx/generic/gdi/salprnpsp.cxx
+1
-2
printerjob.cxx
vcl/unx/generic/printergfx/printerjob.cxx
+3
-2
text_gfx.cxx
vcl/unx/generic/printergfx/text_gfx.cxx
+7
-3
No files found.
vcl/unx/generic/gdi/salprnpsp.cxx
Dosyayı görüntüle @
e20a55ea
...
...
@@ -1328,9 +1328,8 @@ sal_Bool PspSalPrinter::StartJob( const String* i_pFileName, const String& i_rJo
{
oslFileHandle
pFile
=
NULL
;
osl_openFile
(
aPDFFiles
[
i
].
maTmpURL
.
pData
,
&
pFile
,
osl_File_OpenFlag_Read
);
if
(
pFile
)
if
(
pFile
&&
(
osl_setFilePos
(
pFile
,
osl_Pos_Absolut
,
0
)
==
osl_File_E_None
)
)
{
osl_setFilePos
(
pFile
,
osl_Pos_Absolut
,
0
);
std
::
vector
<
char
>
buffer
(
0x10000
,
0
);
// update job data with current page size
Size
aPageSize
(
aPDFFiles
[
i
].
maParameters
.
maPageSize
);
...
...
vcl/unx/generic/printergfx/printerjob.cxx
Dosyayı görüntüle @
e20a55ea
...
...
@@ -77,13 +77,14 @@ AppendPS (FILE* pDst, osl::File* pSrc, sal_uChar* pBuffer,
if
((
pDst
==
NULL
)
||
(
pSrc
==
NULL
))
return
sal_False
;
if
(
pSrc
->
setPos
(
osl_Pos_Absolut
,
0
)
!=
osl
::
FileBase
::
E_None
)
return
sal_False
;
if
(
nBlockSize
==
0
)
nBlockSize
=
nBLOCKSIZE
;
if
(
pBuffer
==
NULL
)
pBuffer
=
(
sal_uChar
*
)
alloca
(
nBlockSize
);
pSrc
->
setPos
(
osl_Pos_Absolut
,
0
);
sal_uInt64
nIn
=
0
;
sal_uInt64
nOut
=
0
;
do
...
...
vcl/unx/generic/printergfx/text_gfx.cxx
Dosyayı görüntüle @
e20a55ea
...
...
@@ -819,10 +819,14 @@ PrinterGfx::writeResources( osl::File* pFile, std::list< rtl::OString >& rSuppli
convertPfbToPfa
(
aFontFile
,
*
pFile
);
aFontFile
.
close
();
pFile
->
setPos
(
osl_Pos_Current
,
-
1
);
char
lastchar
=
'\n'
;
sal_uInt64
uBytes
(
1
);
pFile
->
read
((
void
*
)(
&
lastchar
),
uBytes
,
uBytes
);
if
(
pFile
->
setPos
(
osl_Pos_Current
,
-
1
)
==
osl
::
FileBase
::
E_None
)
{
sal_uInt64
uBytes
(
1
);
pFile
->
read
((
void
*
)(
&
lastchar
),
uBytes
,
uBytes
);
}
if
(
lastchar
!=
'\n'
)
WritePS
(
pFile
,
"
\n
"
);
}
...
...
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