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
172c3752
Kaydet (Commit)
172c3752
authored
Agu 21, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert "returning pointers to temporaries"
This reverts commit
342438c6
.
üst
19277d02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
svgsvgnode.hxx
svgio/inc/svgio/svgreader/svgsvgnode.hxx
+0
-2
svgsvgnode.cxx
svgio/source/svgreader/svgsvgnode.cxx
+5
-8
No files found.
svgio/inc/svgio/svgreader/svgsvgnode.hxx
Dosyayı görüntüle @
172c3752
...
...
@@ -21,7 +21,6 @@
#define INCLUDED_SVGIO_SVGREADER_SVGSVGNODE_HXX
#include <svgio/svgreader/svgstyleattributes.hxx>
#include <boost/scoped_ptr.hpp>
//////////////////////////////////////////////////////////////////////////////
...
...
@@ -37,7 +36,6 @@ namespace svgio
/// variable scan values, dependent of given XAttributeList
basegfx
::
B2DRange
*
mpViewBox
;
mutable
boost
::
scoped_ptr
<
basegfx
::
B2DRange
>
xGeneratedBox
;
SvgAspectRatio
maSvgAspectRatio
;
SvgNumber
maX
;
SvgNumber
maY
;
...
...
svgio/source/svgreader/svgsvgnode.cxx
Dosyayı görüntüle @
172c3752
...
...
@@ -611,7 +611,7 @@ namespace svgio
// Extract known viewport data
// bXXXIsAbsolute tracks whether relative values could be resolved to absolute values
if
(
getParent
())
{
{
// If width or height is not provided, the default 100% is used, see SVG 1.1 section 5.1.2
// value 0.0 here is only to initialize variable
bool
bWidthIsAbsolute
(
getWidth
().
isSet
()
&&
Unit_percent
!=
getWidth
().
getUnit
());
...
...
@@ -628,8 +628,7 @@ namespace svgio
if
(
bXIsAbsolute
&&
bYIsAbsolute
&&
bWidthIsAbsolute
&&
bHeightIsAbsolute
)
{
xGeneratedBox
.
reset
(
new
basegfx
::
B2DRange
(
fX
,
fY
,
fX
+
fW
,
fY
+
fH
));
return
xGeneratedBox
.
get
();
return
&
basegfx
::
B2DRange
(
fX
,
fY
,
fX
+
fW
,
fY
+
fH
);
}
else
// try to resolve relative values
{
...
...
@@ -672,8 +671,7 @@ namespace svgio
if
(
bXIsAbsolute
&&
bYIsAbsolute
&&
bWidthIsAbsolute
&&
bHeightIsAbsolute
)
{
xGeneratedBox
.
reset
(
new
basegfx
::
B2DRange
(
fX
,
fY
,
fX
+
fW
,
fY
+
fH
));
return
xGeneratedBox
.
get
();
return
&
basegfx
::
B2DRange
(
fX
,
fY
,
fX
+
fW
,
fY
+
fH
);
}
else
// relative values could not be resolved, there exists no fallback
{
...
...
@@ -692,12 +690,11 @@ namespace svgio
double
fH
(
bHeightIsAbsolute
?
getHeight
().
solveNonPercentage
(
*
this
)
:
0.0
);
if
(
bWidthIsAbsolute
&&
bHeightIsAbsolute
)
{
xGeneratedBox
.
reset
(
new
basegfx
::
B2DRange
(
0.0
,
0.0
,
fW
,
fH
));
return
xGeneratedBox
.
get
();
return
&
basegfx
::
B2DRange
(
0.0
,
0.0
,
fW
,
fH
);
}
else
// no fallback exists
{
return
SvgNode
::
getCurrentViewPort
();
return
SvgNode
::
getCurrentViewPort
();
}
}
// ToDo: Is it possible to decompose and use the bounding box of the childs, if even the
...
...
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