summaryrefslogtreecommitdiffstats
path: root/src/object/sp-pattern.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-06-06Refactoring: call setAttribute() directly.Shlomi Fish1-1/+1
Call this->setAttribute(...) directly instead of this->getRepr()->setAttribute(...). This avoids clutter and mental indirection. See http://wiki.inkscape.org/wiki/index.php?title=Refactoring_projects&oldid=112116 and https://en.wikipedia.org/wiki/Law_of_Demeter . --- I hereby disclaim any implicit or explicit ownership of my changes in this changeset, and put them under a multiple licence consisting of your choice of one of more of: - The CC0 / Public Domain - https://creativecommons.org/choose/zero/ . - The MIT / Expat license - https://en.wikipedia.org/wiki/MIT_License - The default licence of your project - The https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License - version 2.1 or higher - The https://en.wikipedia.org/wiki/GNU_General_Public_License - version 2 or higher - Any licence in the 2018-Aug-27 popular licenses list of https://opensource.org/licenses - The https://en.wikipedia.org/wiki/Apache_License version 2.0 or later - The https://en.wikipedia.org/wiki/Artistic_License version 2.0 or later - The https://en.wikipedia.org/wiki/ISC_license - The https://opensource.org/licenses/BSD-2-Clause Crediting me will be nice, but not mandatory, and you can change the licence of the project without needing my permission.
2019-01-02modernize loopsMarc Jeanmougin1-8/+3
2018-11-08Clarify licensesMax Gaukler1-1/+2
- add license headers to everything - convert a few files from public domain or LGPL2.1+ to GPL2+ - some archaeology to clarify which files are from which library
2018-10-22Remove 'document-private.h' where not needed plus some other header cleanup.Tavmjong Bah1-7/+10
2018-10-06SPAttributeEnum typed function argumentsThomas Holder1-1/+1
2018-10-01Remove #include "config.h" wherever possibleEduard Braun1-4/+0
2018-06-18Run clang-tidy’s modernize-use-equals-default pass.Emmanuel Gil Peyrot1-1/+1
This replaces empty constructors and destructors with the default keyword.
2018-06-18Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot1-20/+20
This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
2018-05-04Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin1-5/+5
This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
2018-04-29Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin1-5/+5
2018-01-30Move classes derived from SPObject to own directory.Tavmjong Bah1-0/+3
A lot of header clean-up.
2017-09-24Remove unused parameter in SPItem::doWriteTransformStefano Facchini1-1/+1
2017-05-18fix a brunch of memory leakschr1-0/+1
(bzr r15698.1.2)
2017-05-18bugfix crash while moving objectschr1-2/+3
sp_svg_transform_write can return NULL and Glib::ustring blows up: terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct null not valid #0 0x00007fffed6ec067 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007fffed6ed448 in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007fffedac2b3d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #3 0x00007fffedac0bb6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #4 0x00007fffedac0c01 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #5 0x00007fffedac0e19 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #6 0x00007fffedb168b6 in std::__throw_logic_error(char const*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #7 0x00007ffff76e83d5 in char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) () from /usr/bin/../lib/inkscape/libinkscape_base.so #8 0x00007fffedb22c46 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #9 0x00007ffff036055e in Glib::ustring::ustring(char const*) () from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1 #10 0x00007ffff75650e3 in SPPattern::transform_multiply(Geom::Affine, bool) () from /usr/bin/../lib/inkscape/libinkscape_base.so #11 0x00007ffff753d862 in SPItem::adjust_pattern(Geom::Affine const&, bool, PatternTransform) () from /usr/bin/../lib/inkscape/libinkscape_base.so #12 0x00007ffff7562897 in SPPath::set_transform(Geom::Affine const&) () from /usr/bin/../lib/inkscape/libinkscape_base.so (bzr r15698.1.1)
2017-02-05Fix C++11 errors and warnings with g++-7Alex Valavanis1-1/+3
Fixed bugs: - https://launchpad.net/bugs/1660992 (bzr r15477)
2016-09-06Improve pattern rendering with large pattern transform.Tavmjong Bah1-2/+12
Partial fix for bug #1465753. (bzr r15108)
2016-08-03Removed unused includes, decreased compilation time. Once againAdrian Boguszewski1-5/+1
(bzr r15034)
2016-07-28Reverted changes to r15024 after many building problemsAdrian Boguszewski1-1/+5
(bzr r15027)
2016-07-28Removed unused includes, decrease compilation timeAdrian Boguszewski1-5/+1
(bzr r15025)
2016-07-14Renamed children list in SPObjectAdrian Boguszewski1-5/+5
(bzr r14954.1.21)
2016-07-13Second part of new SPObject children listAdrian Boguszewski1-15/+15
(bzr r14954.1.19)
2016-04-29Backout last commit as it introduced subtle errors.Tavmjong Bah1-2/+0
(bzr r14864)
2016-04-29SVG 2 allows 'href' without 'xlink:'. For now just read plain 'href'.Tavmjong Bah1-0/+2
(bzr r14863)
2016-03-12Add new TTF to the logo in seamless pattern extensionJabier Arraiza Cenoz1-4/+5
Add checkboard background to the same extension Update template to 0.01+devel Fix a bug on SPPatern when apply a transform = Affine() (bzr r14700)
2015-11-13static code analysisKris De Gussem1-3/+3
(bzr r14463)
2015-05-03renamed SPPattern methods to match coding styleTomasz Boczkowski1-81/+81
(bzr r14059.1.20)
2015-05-03Reformatted SPPatternTomasz Boczkowski1-247/+265
(bzr r14059.1.19)
2015-02-27corrected the casts (hopefully)Marc Jeanmougin1-1/+1
(bzr r13922.1.10)
2015-02-25create SPObject factoryLiam P. White1-10/+0
(bzr r13939.1.1)
2015-02-19Put a few std::vector<SPitem*>Marc Jeanmougin1-2/+2
(bzr r13922.1.5)
2015-02-17At first, I was thinking "I just have to go to the selection file, and ↵Marc Jeanmougin1-3/+3
change that GSList* with a std::list, then resolve the few problems" So, i tried that. And I will continue tomorrow, and the days after, on and on. (bzr r13922.1.1)
2014-08-18Fix build (not pretty).Liam P. White1-0/+2
(bzr r13341.1.146)
2014-05-29fixed possible bug SPPattern::_get_childrenTomasz Boczkowski1-3/+2
(bzr r13341.6.24)
2014-05-29SPPattern c++-sification: class fields are privateTomasz Boczkowski1-4/+4
(bzr r13341.6.23)
2014-05-29SPPattern c++-sification: replaced function by methods pt3Tomasz Boczkowski1-29/+10
(bzr r13341.6.22)
2014-05-28SPPattern c++-sification: replaced function by methodsTomasz Boczkowski1-30/+20
(bzr r13341.6.21)
2014-05-27SPPattern c++-sification: replacing pattern_ functions by methods pt1Tomasz Boczkowski1-33/+33
(bzr r13341.6.19)
2014-05-27SPPattern c++-sification: replaced GSList by std::listTomasz Boczkowski1-20/+21
(bzr r13341.6.18)
2014-05-26SPPattern c++-sification: replaced gchar* by Glib::ustringTomasz Boczkowski1-15/+10
(bzr r13341.6.17)
2014-05-26SPPattern c++-sification: replaced guint by bool and enumTomasz Boczkowski1-20/+20
(bzr r13341.6.16)
2014-05-17fix compliance test pservers-pattern-04-f - inheriting pattern viewBoxTomasz Boczkowski1-2/+3
(bzr r13341.1.36)
2014-05-16fix compliance test pservers-pattern-03-f - using fallback when pattern is emptyTomasz Boczkowski1-0/+10
(bzr r13341.1.34)
2014-05-16don't rely on operator precedence (rev. 13372)Johan B. C. Engelen1-2/+2
(bzr r13341.1.32)
2014-05-16Fix crash in preview widget for files containing objectBoundingBox related ↵Tomasz Boczkowski1-2/+2
patterns (bzr r13341.1.31)
2014-03-06Take "preserveAspectRatio" into account in pattern.Tavmjong Bah1-10/+5
(bzr r13121)
2014-03-06Rewrite of pattern geometry code. Fix for 1288489.Tavmjong Bah1-35/+49
(bzr r13120)
2014-03-04Fix for W3C test suite coords-units-01-b.svg. Fixes pattern positioning.Tavmjong Bah1-5/+4
(bzr r13111)
2014-02-08DrawingContext: change variable names ct to dc (bug #1272073)David Mathog1-6/+6
Fixed bugs: - https://launchpad.net/bugs/1272073 (bzr r13009)
2014-02-06Added new base class to handle viewBox and preserveAspectRatio.Tavmjong Bah1-45/+10
Updated sp-root, sp-symbol, sp-image, sp-pattern, marker to use new class. Fixed some viewport issues when % used. (bzr r13002)
2013-11-19Increased pattern resolution to fix blocker bug #1251039.Tavmjong Bah1-1/+2
(bzr r12824)