* 2014-08-24 Hans Breuer addc77b Bug 735303 - Don't create empty groups from VDX Fixed in the VDX plug-in itself but also on the lib API level with g_return_val_if_fail (objects != NULL, NULL); (cherry picked from commit ec4dbbcbc21e1233e46ba9ae059a18bed459ca24) * 2014-07-26 Balázs Úr 9e5d28b Updated Hungarian translation * 2014-05-09 Gokturk Yuksek 6b99cb6 cairo: do not compile cairo plugin if '--without-cairo' is defined. Passing '--without-cairo' option to the build system disables the inclusion of cairo header files but does not prevent the code from building. As a result the compilation fails with 'implicit declaration of function' errors. To fix this, modify the Makefile.am so that it does not compile the plugin if '--without-cairo' is defined. Note that this option must be passed by the user explicitly as the build system will always detect libcairo on the system since GTK depends on it. See: https://bugzilla.gnome.org/show_bug.cgi?id=729668 See: https://bugs.gentoo.org/show_bug.cgi?id=509636 Signed-off-by: Gokturk Yuksek (cherry picked from commit ceb7265b65ed969698c358a850f8ff3ad42cc9d5) Conflicts: plug-ins/cairo/diacairo-renderer.c plug-ins/cairo/diacairo.c * 2014-05-13 Мирослав Николић b5e989c Updated Serbian translation * 2014-04-18 Hans Breuer cefc9fa Bug 728405 - Include custom shapes for unit test Formerly only programmed objects were tested within the build environment, except if shapes were found outside of the source tree (e.g. from home directory or build prefix) * 2014-04-18 Hans Breuer 3e3d787 Bug 728405 - back-port some bounding box calculation fixes from master ... so that the unit test works without complaints. * 2014-04-18 Hans Breuer 7befee2 [build] Remove -D*_DISABLE_DEPRECATED from makefile.msc Deprecation updates wont happen on the stable branch if not absolutely necessary. * 2014-03-29 Hans Breuer 2960412 Dia 0.97.3 NEWS update * 2014-03-27 Steffen Macke 5a1cd94 Improved Control Panel info, optional desktop shortcut. * 2014-03-26 Steffen Macke d180e9d Improved uninstallation, fixed pixbuf loader problem. * 2014-03-26 Steffen Macke 1d961ab Improved uninstallation, ensure that translations are installed if needed. * 2014-03-25 Steffen Macke 273cb29 Updates from master branch, cosmetic updates. * 2014-03-16 Ting-Wei Lan 19d73ed Bug 726458 - Fix build problem on FreeBSD Define _BSD_SOURCE does not make fchmod() available on FreeBSD. Change _POSIX_C_SOURCE to 200809L so we can build it on FreeBSD. Signed-off-by: Hans Breuer (cherry picked from commit 4e948cc8fca17ff2ae4b961defc0f48ad78bae6d) Conflicts: app/load_save.c * 2009-09-26 Hans Breuer aa89b06 [scan-build] Unitialized argument In case of malformed spline an uninitialized pointer was passed to g_free() http://clang-analyzer.llvm.org/scan-build (cherry picked from commit c308a61b42f4dccb820cdd6bafad2c97b126cd36) * 2011-11-01 Hans Breuer 29d048d Fix 'UML - Classicon' property 'type' flags (especially being optional) The property flag initialization was wrongly using the logical OR operator, it was meant to be bitwise OR. Occurrence only in the master branch. (cherry picked from commit 1aaf9592cffbb03c199cddb85fcc63b06cad0f8e) * 2013-05-20 Hans Breuer 2c650a4 [warningectomy] implicit conversion from enumeration type implicit conversion from enumeration type 'enum _cairo_font_slant' to different enumeration type 'cairo_font_weight_t' (aka 'enum _cairo_font_weight') [-Wenum-conversion] DIA_FONT_STYLE_GET_WEIGHT (style) < DIA_FONT_MEDIUM ? CAIRO_FONT_SLANT_NORMAL : CAIRO_FONT_WEIGHT_BOLD); ^~~~~~~~~~~~~~~~~~~~~~~ (cherry picked from commit 36104262d2d3cffb1ac61ed3ce6585ec306904c1) * 2009-11-07 Hans Breuer d339ca4 Bug #600983 - Use automake's silent rules for nicer build For now only tested with automake 1.10.2, but it does not disturb the build there. Patch from Jon Dufresne. (cherry picked from commit 3d66c398445ba92a094e899f6253cbac0d16d472) * 2014-01-26 Hans Breuer 60ed98f [warnigectomy] Use -Werror=... rather than --std=c89 On win32 we still need c89/c90 w/o gnu extension due to msvc6 use. But --std=c89 is very strict, e.g. it prohibits single line comments. The following -Werror= reject constructs which break the Windows build -Werror=declaration-after-statement -Werror=implicit-function-declaration There might be more conmstructs to avoid, but these arte the most pressing. Actually the second is turned into an error explicetly on Windows, too. But the first one is a compiler limitation. (cherry picked from commit 65b4ff6191f210201acfe11f8f969e4d910b1928) * 2014-03-14 Hans Breuer c207653 Bug 710818 - Overflow safe wrappers for acos/asin (now really) acos() and asin() are only defined in a certain range. Implement some range/overflow safe wrappers rather than potentially passing infinite to other modules (e.g. cairo did assert() on it.) Additionally check for !isinf() in cairo plug-in (should not trigger anymore). (cherry picked from commit 9a1f90855fb65ae1f129ccf5687bdf5ad3a37a55) Conflicts: plug-ins/cairo/diacairo-renderer.c * 2014-03-08 Hans Breuer 19af742 Update NEWS for Dia 0.97.3 bug-fix-only * 2013-12-16 Dominique Leuenberger e09d97f plugin: Use the Freetype developer's proposed way if #include'ing their headers. Allows us to build against Freetype 2.5.1 (without breaking older versions). https://bugzilla.gnome.org/show_bug.cgi?id=720573 Signed-off-by: Hans Breuer (cherry picked from commit 0b863adcad031c70601e375d72dae64fdd967752) * 2013-12-14 Hans Breuer c23b661 Bug 711418 - Handle diagram file with comments A comment as the first part in the XML file was prohibiting to load the file at all with “Not a Dia file” error. (cherry picked from commit 805905eae28f215c74716c1fef684106a9997c54) * 2013-11-17 Hans Breuer c2ec399 Bug 710818 - Overflow safe wrappers for acos/asin acos() and asin() are only defined in a certain range. Implement some range/overflow safe wrappers rather than potentially passing infinite to other modules (e.g. cairo did assert() on it.) (cherry picked from commit 846a7ff5b5cb5d21f3c97d21f7a1890a0fcfb65b) Conflicts: lib/boundingbox.c lib/geometry.c * 2011-06-05 Hans Breuer 87c40b9 Bug 651949 - Don't crash on save in non-browse mode Not getting a filename looks like a contract violation in Gtk+ to me. Still Dia would be crashing, instead simply go back to the dialog. (cherry picked from commit cfc6810939d8fce9e17b306f4c72b58427b98a70) * 2014-03-02 Hans Breuer 1bd456b Bug 721851 - Command line export not working for pixbuf The pixbuf export requires a diaplay. Use gtk_init_check() to allow command line export from an X terminal without sacrificing the command line mode without X11. (cherry picked from commit c3dcf1eec1b4ef57c45c58410048b77c83ea50dd) * 2011-06-13 Hans Breuer 4d5c06a Bug 651127 - Correctly detect swig 2.x Patch from ismail@namtrac.org (cherry picked from commit fb277f11d744c9724475babc6388489437faa5e6) * 2013-04-05 Robie Basak 0d59161 Use python-config where available In the next Ubuntu release, python will be installed with multiarch support, which breaks the build because assumptions are made about python library locations which no longer hold true. python-config has been supported in upstream Python since 2.6, so use python-config to determine include file and library locations and names if it is available. Otherwise fall back to the old behaviour. This fixes the build in the current development release of Ubuntu, and is a reasonably generic and cross-platform way to configure the build for Python. Signed-off-by: Hans Breuer (cherry picked from commit c66f9543c41008ccc2f093b744da6893c2cb91e9) * 2014-02-14 Hans Breuer 8a57c7f Bug 573261 - Avoid font kerning problems with pangocairo(fc) There is a recurring bug with pangocairo related to kerning and font scaling. See: https://bugzilla.gnome.org/buglist.cgi?quicksearch=341481+573261+700592 Rather than waiting for another fix let's try to implement the ultimate work around. With Pango-1.32 and HarfBuzz the kludge in Pango is gone and apparently substituted with a precision problem. If we now use huge fonts when talking to Pango and downscale these with cairo it should work with all Pango versions. Also add a sequence diagram used to understand the problem. (cherry picked from commit 226fb87f34d4b49e700fb9cb340b49b67fd59540) * 2014-02-23 Balázs Úr 7f05d87 Updated Hungarian translation * 2013-09-03 Balázs Úr be917f5 Updated Hungarian translation * 2014-02-03 Мирослав Николић 976f7c7 Updated Serbian translation * 2013-10-03 Hans Breuer f1dcb67 Bug 709017 [warningectomy] array subscript is above array bounds Get rid of the temporary array for font name, loose the limitation of maximum font name length and spare a string copy. * 2013-09-13 Hans Breuer 7bce4c6 Bug 707497 - Fix fatal PNG error wit libpng16 Thanks to Evgeny Bobkin for creating the fixed image. https://bugzilla.gnome.org/show_bug.cgi?id=707497#c9 * 2013-09-12 Martin Srebotnjak 58bea66 Updated Slovenian translation * 2013-08-21 Steffen Macke 0f73bb1 Improved folder icon. * 2013-08-18 Steffen Macke cbd2c8c Fixed black light shape reference. * 2013-08-16 Steffen Macke 8d769d8 Bug #667500 - Avoid $\r syntax for NSIS line breaks to avoid POEdit confusion * 2013-08-16 Hans Breuer 0bcd633 Bug 683700 - vdx full of errors Ensure message_error strings are linefeed-terminated. Plus fixes merged from master: cairo: don't screw cairo's matrix by scaling with 0 Seen with the VDX attached to bug 683700 - maybe there is also something wrong with the import? vdx: UTF-8 safe variant to remove last newline With the VDX attached to bug 683700 scrambled text appeared. Now corrected with the UTF-8 safe variant to search and replace "\n". * 2013-08-16 Hans Breuer 0080531 Bug 660574 - Avoid cairo going into an endless loop with too small arcs this should fix the issue with SADT flow arrow, although I could not reproduce it. * 2013-08-16 Hans Breuer 02a87cc Bug 672190 - Inputs Methods don't work in integrated mode Connect im-related signals also to the integrated UI canvas * 2013-08-16 Hans Breuer 3d5c36c Fix assumption that table->prop_dialog is always valid Not sure how I made it crash, but this extra safety measure should not hurt in any case. * 2013-03-16 Hans Breuer fd035c6 Bug 694025 - GLib drop support for adding interfaces after class_init Without this Dia crashes at startup with new GLib version and the DiaGdkRenderer being default. Make a new DiaGdkInteractiveRenderer which follows the pattern also used for DiaCairoInteraciveRenderer. This should be functional equivalent to what was there before and should work for all current GLib versions. (cherry picked from commit 213bdfe956bf8fe57c86316f68a09408fef1647e) * 2013-07-03 Steffen Macke 03132b4 Made XQuartz interaction more robust. * 2013-07-02 Steffen Macke 833d789 Cleanup, check for X11, forward to XQuartz homepage, if necessary. * 2013-04-09 Мирослав Николић fee37e3 Added Serbian translation * 2013-02-10 Daniel Șerbănescu b3f1eca Updated Romanian translation * 2013-01-13 Balázs Úr 3f4bf37 Updated Hungarian translation * 2012-12-28 Rafael Ferreira 46e0c75 Updated Brazilian Portuguese Translation * 2010-10-07 Hans Breuer 51b3537 grid-object: avoid crash on shrink Fix some confusion about rows/columns using the wrong limits. Resizing object::connections was too early. (cherry picked from commit cddd958b71a4075751ab76ac3530ced3c33972ea) * 2012-06-23 Hans Breuer 8de821b Bug 676830 : Misc - Grid : don't crash on copy, resize Row index was iterated with the columns range. * 2012-06-11 Christian Kirbach d99363b Updated German translation * 2012-05-18 Maciej Jaros 7c3b806 Updated Polish translation * 2009-06-06 Hans Breuer 7befe28 Bug #585004 - implicit declaration of function 'finite' (2nd iteration) To get the definition either _BSD_SOURCE or _SVID_SOURCE needs to be defined before inclusion of . Removed HAVE_CONFIG_H and chanegd inclusion order (cherry picked from commit 8f363f6dd82f9fbf502fceaf1d73a258c17593db) * 2011-12-01 Dominique Leuenberger c832225 Bug 665335: Only #include : the other headers are implicit * 2012-04-08 Hans Breuer 84ee62e Bug 668587 - Double free() for some SVG rendering The fix for bug 665648 introduced a memory corruption. Now the #if-0'ed code as well as the #else branch respect DiaSvgRender::get_fill_style() having a const return. (cherry picked from commit 47bb76af3ba20b5e83be79a874df02c405934899)