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
59e19330
Kaydet (Commit)
59e19330
authored
Tem 18, 2012
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
RTF import filter review: correction to rtffly.cxx
Patch by: Michael Stahl
üst
f07148ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
rtffly.cxx
sw/source/filter/rtf/rtffly.cxx
+19
-19
No files found.
sw/source/filter/rtf/rtffly.cxx
Dosyayı görüntüle @
59e19330
...
@@ -1254,28 +1254,29 @@ void SwRTFParser::InsPicture( const String& rGrfNm, const Graphic* pGrf,
...
@@ -1254,28 +1254,29 @@ void SwRTFParser::InsPicture( const String& rGrfNm, const Graphic* pGrf,
"SwRTFParser::InsPicture: fly array empty."
);
"SwRTFParser::InsPicture: fly array empty."
);
if
(
aFlyArr
.
Count
())
if
(
aFlyArr
.
Count
())
{
{
// erzeuge nur einen normalen GrafikNode und ersetze diesen gegen
// erzeuge nur einen normalen GrafikNode und ersetze diesen gegen
// den vorhandenen Textnode
// den vorhandenen Textnode
SwNodeIndex
&
rIdx
=
pPam
->
GetPoint
()
->
nNode
;
SwNodeIndex
&
rIdx
=
pPam
->
GetPoint
()
->
nNode
;
pGrfNd
=
pDoc
->
GetNodes
().
MakeGrfNode
(
rIdx
,
pGrfNd
=
pDoc
->
GetNodes
().
MakeGrfNode
(
rIdx
,
rGrfNm
,
aEmptyStr
,
// Name der Graphic !!
rGrfNm
,
aEmptyStr
,
// Name der Graphic !!
pGrf
,
pGrf
,
(
SwGrfFmtColl
*
)
pDoc
->
GetDfltGrfFmtColl
()
);
(
SwGrfFmtColl
*
)
pDoc
->
GetDfltGrfFmtColl
()
);
if
(
pGrfAttrSet
)
if
(
pGrfAttrSet
)
pGrfNd
->
SetAttr
(
*
pGrfAttrSet
);
pGrfNd
->
SetAttr
(
*
pGrfAttrSet
);
SwFlySave
*
pFlySave
=
aFlyArr
[
aFlyArr
.
Count
()
-
1
];
SwFlySave
*
pFlySave
=
aFlyArr
[
aFlyArr
.
Count
()
-
1
];
pFlySave
->
nSttNd
=
rIdx
.
GetIndex
()
-
1
;
pFlySave
->
nSttNd
=
rIdx
.
GetIndex
()
-
1
;
if
(
1
<
aFlyArr
.
Count
()
)
if
(
1
<
aFlyArr
.
Count
()
)
{
{
pFlySave
=
aFlyArr
[
aFlyArr
.
Count
()
-
2
];
pFlySave
=
aFlyArr
[
aFlyArr
.
Count
()
-
2
];
if
(
pFlySave
->
nEndNd
==
rIdx
)
if
(
pFlySave
->
nEndNd
==
rIdx
)
pFlySave
->
nEndNd
=
rIdx
.
GetIndex
()
-
1
;
pFlySave
->
nEndNd
=
rIdx
.
GetIndex
()
-
1
;
}
}
pGrfNd
->
onGraphicChanged
();
pGrfNd
->
onGraphicChanged
();
}
}
}
else
else
{
{
...
@@ -1391,7 +1392,6 @@ void SwRTFParser::_SetPictureSize( const SwNoTxtNode& rNd,
...
@@ -1391,7 +1392,6 @@ void SwRTFParser::_SetPictureSize( const SwNoTxtNode& rNd,
if
(
aSize
.
Width
()
>
nBoxWidth
)
if
(
aSize
.
Width
()
>
nBoxWidth
)
aSize
.
Width
()
=
nBoxWidth
;
aSize
.
Width
()
=
nBoxWidth
;
}
}
}
}
}
//JP 8.11.2001: bug 94450 - if no size exist, then the size is set by
//JP 8.11.2001: bug 94450 - if no size exist, then the size is set by
...
...
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