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
56665a8a
Kaydet (Commit)
56665a8a
authored
Mar 01, 2012
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
oox::drawingml::Shape: fix "lock underflow in SvxShape" assertions
üst
5d49bf62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
shape.cxx
oox/source/drawingml/shape.cxx
+20
-8
No files found.
oox/source/drawingml/shape.cxx
Dosyayı görüntüle @
56665a8a
...
@@ -225,9 +225,6 @@ void Shape::addShape(
...
@@ -225,9 +225,6 @@ void Shape::addShape(
if
(
xShapes
.
is
()
)
if
(
xShapes
.
is
()
)
addChildren
(
rFilterBase
,
*
this
,
pTheme
,
xShapes
,
pShapeRect
?
*
pShapeRect
:
awt
::
Rectangle
(
maPosition
.
X
,
maPosition
.
Y
,
maSize
.
Width
,
maSize
.
Height
),
pShapeMap
,
aMatrix
);
addChildren
(
rFilterBase
,
*
this
,
pTheme
,
xShapes
,
pShapeRect
?
*
pShapeRect
:
awt
::
Rectangle
(
maPosition
.
X
,
maPosition
.
Y
,
maSize
.
Width
,
maSize
.
Height
),
pShapeMap
,
aMatrix
);
}
}
Reference
<
document
::
XActionLockable
>
xLockable
(
mxShape
,
UNO_QUERY
);
if
(
xLockable
.
is
()
)
xLockable
->
removeActionLock
();
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
)
{
{
...
@@ -271,6 +268,25 @@ void Shape::addChildren( ::oox::core::XmlFilterBase& rFilterBase,
...
@@ -271,6 +268,25 @@ void Shape::addChildren( ::oox::core::XmlFilterBase& rFilterBase,
pShapeMap
,
aTransformation
);
pShapeMap
,
aTransformation
);
}
}
struct
ActionLockGuard
{
explicit
ActionLockGuard
(
Reference
<
drawing
::
XShape
>
const
&
xShape
)
:
m_xLockable
(
xShape
,
UNO_QUERY
)
{
if
(
m_xLockable
.
is
())
{
m_xLockable
->
addActionLock
();
}
}
~
ActionLockGuard
()
{
if
(
m_xLockable
.
is
())
{
m_xLockable
->
removeActionLock
();
}
}
private
:
Reference
<
document
::
XActionLockable
>
m_xLockable
;
};
// for group shapes, the following method is also adding each child
// for group shapes, the following method is also adding each child
void
Shape
::
addChildren
(
void
Shape
::
addChildren
(
XmlFilterBase
&
rFilterBase
,
XmlFilterBase
&
rFilterBase
,
...
@@ -446,9 +462,7 @@ Reference< XShape > Shape::createAndInsert(
...
@@ -446,9 +462,7 @@ Reference< XShape > Shape::createAndInsert(
xSet
->
setPropertyValue
(
sVisible
,
Any
(
sal_False
)
);
xSet
->
setPropertyValue
(
sVisible
,
Any
(
sal_False
)
);
}
}
Reference
<
document
::
XActionLockable
>
xLockable
(
mxShape
,
UNO_QUERY
);
ActionLockGuard
const
alg
(
mxShape
);
if
(
xLockable
.
is
()
)
xLockable
->
addActionLock
();
// sj: removing default text of placeholder objects such as SlideNumberShape or HeaderShape
// sj: removing default text of placeholder objects such as SlideNumberShape or HeaderShape
if
(
bClearText
)
if
(
bClearText
)
...
@@ -562,8 +576,6 @@ Reference< XShape > Shape::createAndInsert(
...
@@ -562,8 +576,6 @@ Reference< XShape > Shape::createAndInsert(
getTextBody
()
->
insertAt
(
rFilterBase
,
xText
,
xAt
,
aCharStyleProperties
,
mpMasterTextListStyle
);
getTextBody
()
->
insertAt
(
rFilterBase
,
xText
,
xAt
,
aCharStyleProperties
,
mpMasterTextListStyle
);
}
}
}
}
if
(
xLockable
.
is
()
)
xLockable
->
removeActionLock
();
}
}
if
(
mxShape
.
is
()
)
if
(
mxShape
.
is
()
)
...
...
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