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
37f4239e
Kaydet (Commit)
37f4239e
authored
Ara 31, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ofz#4845 avoid oom
Change-Id: I816e2a2e2c21bf999c261e59c860fd142ba59f76
üst
2ed6eba4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
mathmlimport.cxx
starmath/source/mathmlimport.cxx
+5
-1
No files found.
starmath/source/mathmlimport.cxx
Dosyayı görüntüle @
37f4239e
...
...
@@ -2675,6 +2675,10 @@ void SmXMLTableContext_Impl::EndElement()
nCols
=
std
::
max
(
nCols
,
pArray
->
GetNumSubNodes
());
aReverseStack
.
push_front
(
std
::
unique_ptr
<
SmNode
>
(
pArray
));
}
if
(
nCols
>
SAL_MAX_UINT16
)
throw
std
::
range_error
(
"column limit"
);
if
(
nRows
>
SAL_MAX_UINT16
)
throw
std
::
range_error
(
"row limit"
);
aExpressionArray
.
resize
(
nCols
*
nRows
);
size_t
j
=
0
;
while
(
!
aReverseStack
.
empty
()
)
...
...
@@ -2691,7 +2695,7 @@ void SmXMLTableContext_Impl::EndElement()
aToken
.
eType
=
TMATRIX
;
std
::
unique_ptr
<
SmMatrixNode
>
pSNode
(
new
SmMatrixNode
(
aToken
));
pSNode
->
SetSubNodes
(
aExpressionArray
);
pSNode
->
SetRowCol
(
static_cast
<
sal_uInt16
>
(
nRows
),
nCols
);
pSNode
->
SetRowCol
(
nRows
,
nCols
);
rNodeStack
.
push_front
(
std
::
move
(
pSNode
));
}
...
...
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