diff options
| author | vanntile <valentin.ionita1201@gmail.com> | 2019-08-11 09:15:19 +0000 |
|---|---|---|
| committer | vanntile <valentin.ionita1201@gmail.com> | 2019-08-17 15:33:46 +0000 |
| commit | 863a58d272adaa3c371874e3472e7b90b57dcfb5 (patch) | |
| tree | cb098c455031b28a82ac2c1fbd2af30999f774a8 /src/ui/clipboard.cpp | |
| parent | Some useful hatch changes (diff) | |
| download | inkscape-863a58d272adaa3c371874e3472e7b90b57dcfb5.tar.gz inkscape-863a58d272adaa3c371874e3472e7b90b57dcfb5.zip | |
Formatting last commit
Diffstat (limited to 'src/ui/clipboard.cpp')
| -rw-r--r-- | src/ui/clipboard.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp index dd1679dfc..4362c2b94 100644 --- a/src/ui/clipboard.cpp +++ b/src/ui/clipboard.cpp @@ -64,8 +64,8 @@ #include "object/sp-rect.h" #include "object/sp-root.h" #include "object/sp-shape.h" -#include "object/sp-use.h" #include "object/sp-textpath.h" +#include "object/sp-use.h" #include "style.h" #include "svg/svg.h" // for sp_svg_transform_write, used in _copySelection @@ -325,9 +325,9 @@ void ClipboardManagerImpl::copySymbol(Inkscape::XML::Node* symbol, gchar const* SPObject *cmobj = _clipboardSPDoc->getObjectByRepr(repr); if (cmobj && !user_symbol) { // convert only stock symbols if (!Geom::are_near(scale_units, 1.0, Geom::EPSILON)) { - dynamic_cast<SPGroup *>(cmobj)->scaleChildItemsRec(Geom::Scale(scale_units), - Geom::Point(0, SP_ACTIVE_DESKTOP->getDocument()->getHeight().value("px")), - false); + dynamic_cast<SPGroup *>(cmobj)->scaleChildItemsRec( + Geom::Scale(scale_units), Geom::Point(0, SP_ACTIVE_DESKTOP->getDocument()->getHeight().value("px")), + false); } } @@ -822,11 +822,11 @@ void ClipboardManagerImpl::_copyUsedDefs(SPItem *item) _copyGradient(dynamic_cast<SPGradient *>(server)); } SPPattern *pattern = dynamic_cast<SPPattern *>(server); - if ( pattern ) { + if (pattern) { _copyPattern(pattern); } SPHatch *hatch = dynamic_cast<SPHatch *>(server); - if ( hatch ) { + if (hatch) { _copyHatch(hatch); } } @@ -836,11 +836,11 @@ void ClipboardManagerImpl::_copyUsedDefs(SPItem *item) _copyGradient(dynamic_cast<SPGradient *>(server)); } SPPattern *pattern = dynamic_cast<SPPattern *>(server); - if ( pattern ) { + if (pattern) { _copyPattern(pattern); } SPHatch *hatch = dynamic_cast<SPHatch *>(server); - if ( hatch ) { + if (hatch) { _copyHatch(hatch); } } @@ -976,16 +976,15 @@ void ClipboardManagerImpl::_copyHatch(SPHatch *hatch) while (hatch) { _copyNode(hatch->getRepr(), _doc, _defs); - for (auto& child: hatch->children) { + for (auto &child : hatch->children) { SPItem *childItem = dynamic_cast<SPItem *>(&child); if (childItem) { _copyUsedDefs(childItem); } } - if (hatch->ref){ + if (hatch->ref) { hatch = hatch->ref->getObject(); - } - else{ + } else { hatch = nullptr; } } |
