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
ca276d55
Kaydet (Commit)
ca276d55
authored
Mar 25, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#982466 Unchecked dynamic_cast
Change-Id: I6016ab4ffd2712d62cf3a8136a7d292f06abc8dd
üst
592f1387
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drawdoc3.cxx
sd/source/core/drawdoc3.cxx
+6
-6
No files found.
sd/source/core/drawdoc3.cxx
Dosyayı görüntüle @
ca276d55
...
...
@@ -486,8 +486,8 @@ sal_Bool SdDrawDocument::InsertBookmarkAsPage(
lcl_IterateBookmarkPages
(
*
this
,
pBookmarkDoc
,
rBookmarkList
,
nBMSdPageCount
,
aSearchFunctor
,
(
rBookmarkList
.
empty
()
&&
pBookmarkDoc
!=
this
)
);
// Copy the style that we actually need.
SdStyleSheetPool
*
pBookmarkStyleSheetPool
=
dynamic_cast
<
SdStyleSheetPool
*>
(
pBookmarkDoc
->
GetStyleSheetPool
());
SdStyleSheetPool
*
pStyleSheetPool
=
dynamic_cast
<
SdStyleSheetPool
*>
(
GetStyleSheetPool
());
SdStyleSheetPool
&
rBookmarkStyleSheetPool
=
dynamic_cast
<
SdStyleSheetPool
&>
(
*
pBookmarkDoc
->
GetStyleSheetPool
());
SdStyleSheetPool
&
rStyleSheetPool
=
dynamic_cast
<
SdStyleSheetPool
&>
(
*
GetStyleSheetPool
());
// When copying styles, also copy the master pages!
if
(
!
aLayoutsToTransfer
.
empty
()
)
...
...
@@ -499,7 +499,7 @@ sal_Bool SdDrawDocument::InsertBookmarkAsPage(
SdStyleSheetVector
aCreatedStyles
;
OUString
layoutName
=
*
pIter
;
pStyleSheetPool
->
CopyLayoutSheets
(
layoutName
,
*
p
BookmarkStyleSheetPool
,
aCreatedStyles
);
rStyleSheetPool
.
CopyLayoutSheets
(
layoutName
,
r
BookmarkStyleSheetPool
,
aCreatedStyles
);
if
(
!
aCreatedStyles
.
empty
())
{
...
...
@@ -519,12 +519,12 @@ sal_Bool SdDrawDocument::InsertBookmarkAsPage(
OUString
aRenameStr
;
if
(
!
bReplace
&&
!
bNoDialogs
)
aRenameStr
=
OUString
(
"_"
);
pStyleSheetPool
->
RenameAndCopyGraphicSheets
(
*
p
BookmarkStyleSheetPool
,
aNewGraphicStyles
,
aRenameStr
);
rStyleSheetPool
.
RenameAndCopyGraphicSheets
(
r
BookmarkStyleSheetPool
,
aNewGraphicStyles
,
aRenameStr
);
SdStyleSheetVector
aNewCellStyles
;
pStyleSheetPool
->
CopyCellSheets
(
*
p
BookmarkStyleSheetPool
,
aNewCellStyles
);
rStyleSheetPool
.
CopyCellSheets
(
r
BookmarkStyleSheetPool
,
aNewCellStyles
);
// TODO handle undo of table styles too
pStyleSheetPool
->
CopyTableStyles
(
*
p
BookmarkStyleSheetPool
);
rStyleSheetPool
.
CopyTableStyles
(
r
BookmarkStyleSheetPool
);
// Insert document
...
...
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