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
03e750a7
Kaydet (Commit)
03e750a7
authored
Haz 15, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ofz: fix another leak
Change-Id: I488ee070ab781011e357db6858188d2b706cb348
üst
d47719a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
ww8par2.hxx
sw/source/filter/ww8/ww8par2.hxx
+1
-1
ww8par6.cxx
sw/source/filter/ww8/ww8par6.cxx
+6
-7
No files found.
sw/source/filter/ww8/ww8par2.hxx
Dosyayı görüntüle @
03e750a7
...
@@ -67,7 +67,7 @@ struct WW8SwFlyPara
...
@@ -67,7 +67,7 @@ struct WW8SwFlyPara
// part 2: changes found during reading
// part 2: changes found during reading
long
nNewNetWidth
;
long
nNewNetWidth
;
SwPosition
*
p
MainTextPos
;
// to return to main text after apo
std
::
unique_ptr
<
SwPosition
>
x
MainTextPos
;
// to return to main text after apo
sal_uInt16
nLineSpace
;
// line space in tw for graf apos
sal_uInt16
nLineSpace
;
// line space in tw for graf apos
bool
bAutoWidth
;
bool
bAutoWidth
;
bool
bToggelPos
;
bool
bToggelPos
;
...
...
sw/source/filter/ww8/ww8par6.cxx
Dosyayı görüntüle @
03e750a7
...
@@ -2399,7 +2399,7 @@ bool SwWW8ImplReader::StartApo(const ApoTestResults &rApo, const WW8_TablePos *p
...
@@ -2399,7 +2399,7 @@ bool SwWW8ImplReader::StartApo(const ApoTestResults &rApo, const WW8_TablePos *p
}
}
// remember Pos in body text
// remember Pos in body text
m_xSFlyPara
->
pMainTextPos
=
new
SwPosition
(
*
m_pPaM
->
GetPoint
()
);
m_xSFlyPara
->
xMainTextPos
.
reset
(
new
SwPosition
(
*
m_pPaM
->
GetPoint
())
);
//remove fltanchors, otherwise they will be closed inside the
//remove fltanchors, otherwise they will be closed inside the
//frame, which makes no sense, restore them after the frame is
//frame, which makes no sense, restore them after the frame is
...
@@ -2488,9 +2488,9 @@ void SwWW8ImplReader::StopApo()
...
@@ -2488,9 +2488,9 @@ void SwWW8ImplReader::StopApo()
}
}
else
else
{
{
if
(
!
m_xSFlyPara
->
p
MainTextPos
)
if
(
!
m_xSFlyPara
->
x
MainTextPos
)
{
{
OSL_ENSURE
(
m_xSFlyPara
->
pMainTextPos
,
"StopApo: pMainTextPos is 0"
);
OSL_ENSURE
(
m_xSFlyPara
->
xMainTextPos
.
get
(),
"StopApo: xMainTextPos is nullptr"
);
return
;
return
;
}
}
...
@@ -2511,7 +2511,7 @@ void SwWW8ImplReader::StopApo()
...
@@ -2511,7 +2511,7 @@ void SwWW8ImplReader::StopApo()
SwNodeIndex
aPref
(
m_pPaM
->
GetPoint
()
->
nNode
,
-
1
);
SwNodeIndex
aPref
(
m_pPaM
->
GetPoint
()
->
nNode
,
-
1
);
SwTwips
nNewWidth
=
SwTwips
nNewWidth
=
MoveOutsideFly
(
m_xSFlyPara
->
pFlyFormat
,
*
m_xSFlyPara
->
p
MainTextPos
);
MoveOutsideFly
(
m_xSFlyPara
->
pFlyFormat
,
*
m_xSFlyPara
->
x
MainTextPos
);
if
(
nNewWidth
)
if
(
nNewWidth
)
m_xSFlyPara
->
BoxUpWidth
(
nNewWidth
);
m_xSFlyPara
->
BoxUpWidth
(
nNewWidth
);
...
@@ -2584,7 +2584,7 @@ void SwWW8ImplReader::StopApo()
...
@@ -2584,7 +2584,7 @@ void SwWW8ImplReader::StopApo()
aFlySet
.
ClearItem
(
RES_FRM_SIZE
);
aFlySet
.
ClearItem
(
RES_FRM_SIZE
);
CalculateFlySize
(
aFlySet
,
m_xSFlyPara
->
p
MainTextPos
->
nNode
,
CalculateFlySize
(
aFlySet
,
m_xSFlyPara
->
x
MainTextPos
->
nNode
,
m_xSFlyPara
->
nWidth
);
m_xSFlyPara
->
nWidth
);
nNewWidth
=
ItemGet
<
SwFormatFrameSize
>
(
aFlySet
,
RES_FRM_SIZE
).
GetWidth
();
nNewWidth
=
ItemGet
<
SwFormatFrameSize
>
(
aFlySet
,
RES_FRM_SIZE
).
GetWidth
();
...
@@ -2595,8 +2595,7 @@ void SwWW8ImplReader::StopApo()
...
@@ -2595,8 +2595,7 @@ void SwWW8ImplReader::StopApo()
m_xSFlyPara
->
pFlyFormat
->
SetFormatAttr
(
aSize
);
m_xSFlyPara
->
pFlyFormat
->
SetFormatAttr
(
aSize
);
}
}
delete
m_xSFlyPara
->
pMainTextPos
;
m_xSFlyPara
->
xMainTextPos
.
reset
();
m_xSFlyPara
->
pMainTextPos
=
nullptr
;
// To create the SwFrames when inserting into an existing document, fltshell.cxx
// To create the SwFrames when inserting into an existing document, fltshell.cxx
// will call pFlyFrame->MakeFrames() when setting the FltAnchor attribute
// will call pFlyFrame->MakeFrames() when setting the FltAnchor attribute
...
...
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