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
5ffd11cb
Kaydet (Commit)
5ffd11cb
authored
May 03, 2013
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i122215 Avoid double paste, allow paste of WMF/EMF as bitmap
üst
3c404572
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
sdview3.cxx
sd/source/ui/view/sdview3.cxx
+24
-1
No files found.
sd/source/ui/view/sdview3.cxx
Dosyayı görüntüle @
5ffd11cb
...
@@ -1204,6 +1204,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper,
...
@@ -1204,6 +1204,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper,
{
{
// if no object was inserted, insert a picture
// if no object was inserted, insert a picture
InsertMetaFile
(
aDataHelper
,
rPos
,
pImageMap
,
true
);
InsertMetaFile
(
aDataHelper
,
rPos
,
pImageMap
,
true
);
bReturn
=
true
;
}
}
}
}
...
@@ -1273,7 +1274,29 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper,
...
@@ -1273,7 +1274,29 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper,
{
{
BitmapEx
aBmpEx
;
BitmapEx
aBmpEx
;
if
(
aDataHelper
.
GetBitmapEx
(
FORMAT_BITMAP
,
aBmpEx
)
)
// get basic Bitmap data
aDataHelper
.
GetBitmapEx
(
FORMAT_BITMAP
,
aBmpEx
);
if
(
aBmpEx
.
IsEmpty
())
{
// if this did not work, try to get graphic formats and convert these to bitmap
Graphic
aGraphic
;
if
(
aDataHelper
.
GetGraphic
(
FORMAT_GDIMETAFILE
,
aGraphic
))
{
aBmpEx
=
aGraphic
.
GetBitmapEx
();
}
else
if
(
aDataHelper
.
GetGraphic
(
SOT_FORMATSTR_ID_SVXB
,
aGraphic
))
{
aBmpEx
=
aGraphic
.
GetBitmapEx
();
}
else
if
(
aDataHelper
.
GetGraphic
(
FORMAT_BITMAP
,
aGraphic
))
{
aBmpEx
=
aGraphic
.
GetBitmapEx
();
}
}
if
(
!
aBmpEx
.
IsEmpty
())
{
{
Point
aInsertPos
(
rPos
);
Point
aInsertPos
(
rPos
);
...
...
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