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
f0d9beb8
Kaydet (Commit)
f0d9beb8
authored
Kas 19, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DOCX drawingML shape import: handle margins
Change-Id: Ia89552658dc79568cc46b92e949fc1935434e43d
üst
03b0ee80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+3
-0
GraphicImport.cxx
writerfilter/source/dmapper/GraphicImport.cxx
+1
-0
No files found.
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
f0d9beb8
...
...
@@ -1514,6 +1514,9 @@ DECLARE_OOXMLIMPORT_TEST(testWpsOnly, "wps-only.docx")
// Check position, it was 0. This is a shape, so use getPosition(), not a property.
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
EMU_TO_MM100
(
671830
)),
xShape
->
getPosition
().
X
);
// Left margin was 0, instead of 114300 EMU's.
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
318
),
getProperty
<
sal_Int32
>
(
xShape
,
"LeftMargin"
));
}
DECLARE_OOXMLIMPORT_TEST
(
testFdo70457
,
"fdo70457.docx"
)
...
...
writerfilter/source/dmapper/GraphicImport.cxx
Dosyayı görüntüle @
f0d9beb8
...
...
@@ -1000,6 +1000,7 @@ void GraphicImport::lcl_attribute(Id nName, Value & val)
xShapeProps
->
setPropertyValue
(
"AnchorType"
,
uno
::
makeAny
(
text
::
TextContentAnchorType_AT_CHARACTER
));
m_xShape
->
setPosition
(
awt
::
Point
(
m_pImpl
->
nLeftPosition
,
m_pImpl
->
nTopPosition
));
m_pImpl
->
applyMargins
(
xShapeProps
);
}
}
}
...
...
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