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
aa4b8a81
Kaydet (Commit)
aa4b8a81
authored
Agu 14, 2012
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Be more careful in recognizing MathML (bnc#774921)
Change-Id: I82c36a3ff49f74dc674df46dcf35f8c1a991c9e2
üst
318590b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
smdetect.cxx
starmath/source/smdetect.cxx
+14
-4
No files found.
starmath/source/smdetect.cxx
Dosyayı görüntüle @
aa4b8a81
...
...
@@ -312,10 +312,20 @@ SmFilterDetect::~SmFilterDetect()
{
if
(
0
==
strncmp
(
"<?xml"
,
aBuffer
,
nSize
))
{
static
const
sal_Char
sFltrNm_2
[]
=
MATHML_XML
;
static
const
sal_Char
sTypeNm_2
[]
=
"math_MathML_XML_Math"
;
aFilterName
.
AssignAscii
(
sFltrNm_2
);
aTypeName
.
AssignAscii
(
sTypeNm_2
);
// 200 should be enough for the XML
// version, encoding and !DOCTYPE
// stuff I hope?
sal_Char
aBuffer2
[
200
];
nBytesRead
=
pStrm
->
Read
(
aBuffer2
,
sizeof
(
aBuffer2
)
-
1
);
aBuffer2
[
nBytesRead
]
=
0
;
if
(
strstr
(
aBuffer2
,
"<math>"
)
!=
NULL
||
strstr
(
aBuffer2
,
"<math "
)
!=
NULL
)
{
static
const
sal_Char
sFltrNm_2
[]
=
MATHML_XML
;
static
const
sal_Char
sTypeNm_2
[]
=
"math_MathML_XML_Math"
;
aFilterName
.
AssignAscii
(
sFltrNm_2
);
aTypeName
.
AssignAscii
(
sTypeNm_2
);
}
}
}
}
...
...
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