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
ca911d1d
Kaydet (Commit)
ca911d1d
authored
Tem 06, 2011
tarafından
marc-andre@atc.tcs.com
Kaydeden (comit)
Caolán McNamara
Tem 06, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed core dump and invalid memory access for some edge cases
üst
ee5af920
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
30 deletions
+31
-30
docnew.cxx
sw/source/core/doc/docnew.cxx
+30
-29
ww8par3.cxx
sw/source/filter/ww8/ww8par3.cxx
+1
-1
No files found.
sw/source/core/doc/docnew.cxx
Dosyayı görüntüle @
ca911d1d
...
...
@@ -909,39 +909,40 @@ void SwDoc::UpdateLinks( sal_Bool bUI )
{
SfxObjectCreateMode
eMode
;
sal_uInt16
nLinkMode
=
getLinkUpdateMode
(
true
);
sal_uInt16
nUpdateDocMode
=
GetDocShell
()
->
GetUpdateDocMode
();
if
(
GetDocShell
()
&&
(
nLinkMode
!=
NEVER
||
document
::
UpdateDocMode
::
FULL_UPDATE
==
nUpdateDocMode
)
&&
GetLinkManager
().
GetLinks
().
Count
()
&&
SFX_CREATE_MODE_INTERNAL
!=
(
eMode
=
GetDocShell
()
->
GetCreateMode
())
&&
SFX_CREATE_MODE_ORGANIZER
!=
eMode
&&
SFX_CREATE_MODE_PREVIEW
!=
eMode
&&
!
GetDocShell
()
->
IsPreview
()
)
{
ViewShell
*
pVSh
=
0
;
sal_Bool
bAskUpdate
=
nLinkMode
==
MANUAL
;
sal_Bool
bUpdate
=
sal_True
;
switch
(
nUpdateDocMode
)
{
case
document
:
:
UpdateDocMode
::
NO_UPDATE
:
bUpdate
=
sal_False
;
break
;
case
document
:
:
UpdateDocMode
::
QUIET_UPDATE
:
bAskUpdate
=
sal_False
;
break
;
case
document
:
:
UpdateDocMode
::
FULL_UPDATE
:
bAskUpdate
=
sal_True
;
break
;
}
if
(
bUpdate
&&
(
bUI
||
!
bAskUpdate
)
)
if
(
GetDocShell
())
{
sal_uInt16
nUpdateDocMode
=
GetDocShell
()
->
GetUpdateDocMode
();
if
(
(
nLinkMode
!=
NEVER
||
document
::
UpdateDocMode
::
FULL_UPDATE
==
nUpdateDocMode
)
&&
GetLinkManager
().
GetLinks
().
Count
()
&&
SFX_CREATE_MODE_INTERNAL
!=
(
eMode
=
GetDocShell
()
->
GetCreateMode
())
&&
SFX_CREATE_MODE_ORGANIZER
!=
eMode
&&
SFX_CREATE_MODE_PREVIEW
!=
eMode
&&
!
GetDocShell
()
->
IsPreview
()
)
{
SfxMedium
*
pMedium
=
GetDocShell
()
->
GetMedium
()
;
SfxFrame
*
pFrm
=
pMedium
?
pMedium
->
GetLoadTargetFrame
()
:
0
;
Window
*
pDlgParent
=
pFrm
?
&
pFrm
->
GetWindow
()
:
0
;
if
(
GetCurrentViewShell
()
&&
!
GetEditShell
(
&
pVSh
)
&&
!
pVSh
)
//swmod 071108//swmod 071225
ViewShell
*
pVSh
=
0
;
sal_Bool
bAskUpdate
=
nLinkMode
==
MANUAL
;
sal_Bool
bUpdate
=
sal_True
;
switch
(
nUpdateDocMode
)
{
ViewShell
aVSh
(
*
this
,
0
,
0
);
case
document
:
:
UpdateDocMode
::
NO_UPDATE
:
bUpdate
=
sal_False
;
break
;
case
document
:
:
UpdateDocMode
::
QUIET_UPDATE
:
bAskUpdate
=
sal_False
;
break
;
case
document
:
:
UpdateDocMode
::
FULL_UPDATE
:
bAskUpdate
=
sal_True
;
break
;
}
if
(
bUpdate
&&
(
bUI
||
!
bAskUpdate
)
)
{
SfxMedium
*
pMedium
=
GetDocShell
()
->
GetMedium
();
SfxFrame
*
pFrm
=
pMedium
?
pMedium
->
GetLoadTargetFrame
()
:
0
;
Window
*
pDlgParent
=
pFrm
?
&
pFrm
->
GetWindow
()
:
0
;
if
(
GetCurrentViewShell
()
&&
!
GetEditShell
(
&
pVSh
)
&&
!
pVSh
)
//swmod 071108//swmod 071225
{
ViewShell
aVSh
(
*
this
,
0
,
0
);
SET_CURR_SHELL
(
&
aVSh
);
GetLinkManager
().
UpdateAllLinks
(
bAskUpdate
,
sal_True
,
sal_False
,
pDlgParent
);
SET_CURR_SHELL
(
&
aVSh
);
GetLinkManager
().
UpdateAllLinks
(
bAskUpdate
,
sal_True
,
sal_False
,
pDlgParent
);
}
else
GetLinkManager
().
UpdateAllLinks
(
bAskUpdate
,
sal_True
,
sal_False
,
pDlgParent
);
}
else
GetLinkManager
().
UpdateAllLinks
(
bAskUpdate
,
sal_True
,
sal_False
,
pDlgParent
);
}
}
...
...
sw/source/filter/ww8/ww8par3.cxx
Dosyayı görüntüle @
ca911d1d
...
...
@@ -761,7 +761,7 @@ bool WW8ListManager::ReadLVL(SwNumFmt& rNumFmt, SfxItemSet*& rpItemSet,
for
(
nLevelB
=
0
;
nLevelB
<=
nLevel
;
++
nLevelB
)
{
sal_uInt8
nPos
=
aOfsNumsXCH
[
nLevelB
];
if
(
nPos
&&
sNumString
.
GetChar
(
nPos
-
1
)
<
nMaxLevel
)
if
(
nPos
&&
nPos
<
sNumString
.
Len
()
&&
sNumString
.
GetChar
(
nPos
-
1
)
<
nMaxLevel
)
{
if
(
rNotReallyThere
[
nLevelB
])
aOfsNumsXCH
[
nLevelB
]
=
0
;
...
...
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