This is an automated email from the git hooks/post-receive script.

stuart pushed a commit to branch master
in repository latexdraw.

commit d4ae530da99382909cfddec2847fe9d6c3628f8e
Author: Stuart Prescott <stu...@debian.org>
Date:   Sat Nov 25 11:03:27 2017 +1100

    New upstream version 3.3.7+ds1
---
 latexdraw-core/net.sf.latexdraw.bundle/pom.xml         |  2 +-
 latexdraw-core/net.sf.latexdraw.installer/pom.xml      |  2 +-
 latexdraw-core/net.sf.latexdraw/.gitignore             |  1 +
 latexdraw-core/net.sf.latexdraw/history.txt            | 13 +++++++++++++
 latexdraw-core/net.sf.latexdraw/pom.xml                |  2 +-
 latexdraw-core/net.sf.latexdraw/release_note.txt       | 14 ++++----------
 .../glib/models/impl/LAbstractCtrlPointShape.java      | 17 +++++++++++++++++
 .../net/sf/latexdraw/glib/models/impl/LPicture.java    | 18 ++++++++++++++++++
 .../sf/latexdraw/parsers/svg/SVGPatternElement.java    |  2 +-
 .../src/main/net/sf/latexdraw/util/LResources.java     | 10 +++++-----
 .../src/main/net/sf/latexdraw/util/VersionChecker.java |  4 ++--
 .../src/resources/main/res/release_note.txt            | 14 ++++----------
 12 files changed, 68 insertions(+), 31 deletions(-)

diff --git a/latexdraw-core/net.sf.latexdraw.bundle/pom.xml 
b/latexdraw-core/net.sf.latexdraw.bundle/pom.xml
index a410a5f..35a587a 100644
--- a/latexdraw-core/net.sf.latexdraw.bundle/pom.xml
+++ b/latexdraw-core/net.sf.latexdraw.bundle/pom.xml
@@ -5,7 +5,7 @@
   <groupId>net.sf.latexdraw</groupId>
   <artifactId>latexdraw.bundle</artifactId>
   <name>LaTeXDraw bundle</name>
-  <version>3.3.6</version>
+  <version>3.3.7</version>
   <packaging>pom</packaging>
   
   <properties>
diff --git a/latexdraw-core/net.sf.latexdraw.installer/pom.xml 
b/latexdraw-core/net.sf.latexdraw.installer/pom.xml
index c0a92c9..410e3a8 100644
--- a/latexdraw-core/net.sf.latexdraw.installer/pom.xml
+++ b/latexdraw-core/net.sf.latexdraw.installer/pom.xml
@@ -5,7 +5,7 @@
   <groupId>net.sf.latexdraw</groupId>
   <artifactId>latexdraw.installer</artifactId>
   <name>LaTeXDraw installer</name>
-  <version>3.3.6</version>
+  <version>3.3.7</version>
   <build>
         <sourceDirectory>src/main/</sourceDirectory>
                <resources>
diff --git a/latexdraw-core/net.sf.latexdraw/.gitignore 
b/latexdraw-core/net.sf.latexdraw/.gitignore
index 0a6c04d..b1d23cd 100644
--- a/latexdraw-core/net.sf.latexdraw/.gitignore
+++ b/latexdraw-core/net.sf.latexdraw/.gitignore
@@ -9,3 +9,4 @@
 /net.sf.latexdraw.iml
 /.cache-main
 /.cache-tests
+sonar.sh
diff --git a/latexdraw-core/net.sf.latexdraw/history.txt 
b/latexdraw-core/net.sf.latexdraw/history.txt
index 434d023..eb8ee1f 100644
--- a/latexdraw-core/net.sf.latexdraw/history.txt
+++ b/latexdraw-core/net.sf.latexdraw/history.txt
@@ -1,4 +1,17 @@
 ************************************************************
+Version 3.3.6 -- 2017/07/12
+
+- fixed: the tooltip that shows LaTeX compilation errors while putting the 
cursor over a text shape may freeze the application.
+ Moreover, the displayed message was not correct.
+- fixed: problem of encoding (MS950) not supported by the XML serialiser that 
prevented SVG files to be saved.
+- fixed: arcs were not correctly drawn and saved as SVG on certain start/end 
angles.
+- fixed: the installer cannot be run on some configurations (e.g. Fedora 25 
with Wayland).
+- fixed: the shape deletion is not re-activated when clicking the PST tab and 
the clicking the drawing tab back.
+- fixed: the generated PSTricks may be incorrectly commented preventing the 
compilation
+- fixed (usability): no message was displayed in the status bar to explain how 
to draw shapes.
+- fixed (usability): better feedback on compilation errors during exports as 
PDF/PS documents.
+
+************************************************************
 Version 3.3.5 -- 2016-12-30
 
 - fixed: latest versions of PSTricks break the cropping of text figures.
diff --git a/latexdraw-core/net.sf.latexdraw/pom.xml 
b/latexdraw-core/net.sf.latexdraw/pom.xml
index 05e5695..1599d9e 100644
--- a/latexdraw-core/net.sf.latexdraw/pom.xml
+++ b/latexdraw-core/net.sf.latexdraw/pom.xml
@@ -5,7 +5,7 @@
   <groupId>net.sf.latexdraw</groupId>
   <artifactId>latexdraw.core</artifactId>
   <name>LaTeXDraw</name>
-  <version>3.3.6</version>
+  <version>3.3.7</version>
   <packaging>jar</packaging>
   
        <properties>
diff --git a/latexdraw-core/net.sf.latexdraw/release_note.txt 
b/latexdraw-core/net.sf.latexdraw/release_note.txt
index 5957932..6034456 100644
--- a/latexdraw-core/net.sf.latexdraw/release_note.txt
+++ b/latexdraw-core/net.sf.latexdraw/release_note.txt
@@ -1,12 +1,6 @@
 ************************************************************
-Version 3.3.6 -- 2017/07/12
+Version 3.3.7 -- 19/11/2017
 
-- fixed: the tooltip that shows LaTeX compilation errors while putting the 
cursor over a text shape may freeze the application.
- Moreover, the displayed message was not correct.
-- fixed: problem of encoding (MS950) not supported by the XML serialiser that 
prevented SVG files to be saved.
-- fixed: arcs were not correctly drawn and saved as SVG on certain start/end 
angles.
-- fixed: the installer cannot be run on some configurations (e.g. Fedora 25 
with Wayland).
-- fixed: the shape deletion is not re-activated when clicking the PST tab and 
the clicking the drawing tab back.
-- fixed: the generated PSTricks may be incorrectly commented preventing the 
compilation
-- fixed (usability): no message was displayed in the status bar to explain how 
to draw shapes.
-- fixed (usability): better feedback on compilation errors during exports as 
PDF/PS documents.
+fixed: crash at start-up using Java 9
+fixed: pictures not correctly mirrored
+fixed: control points not mirrored
diff --git 
a/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/glib/models/impl/LAbstractCtrlPointShape.java
 
b/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/glib/models/impl/LAbstractCtrlPointShape.java
index 785f0af..cc72b33 100644
--- 
a/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/glib/models/impl/LAbstractCtrlPointShape.java
+++ 
b/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/glib/models/impl/LAbstractCtrlPointShape.java
@@ -150,6 +150,23 @@ abstract class LAbstractCtrlPointShape extends 
LModifiablePointsShape implements
                return firstCtrlPts;
        }
 
+       @Override
+       public void mirrorHorizontal(final IPoint origin) {
+               super.mirrorHorizontal(origin);
+               if(GLibUtilities.isValidPoint(origin)) {
+                       firstCtrlPts.forEach(pt -> 
pt.setPoint(pt.horizontalSymmetry(origin)));
+                       secondCtrlPts.forEach(pt -> 
pt.setPoint(pt.horizontalSymmetry(origin)));
+               }
+       }
+
+       @Override
+       public void mirrorVertical(final IPoint origin) {
+               super.mirrorVertical(origin);
+               if(GLibUtilities.isValidPoint(origin)) {
+                       firstCtrlPts.forEach(pt -> 
pt.setPoint(pt.verticalSymmetry(origin)));
+                       secondCtrlPts.forEach(pt -> 
pt.setPoint(pt.verticalSymmetry(origin)));
+               }
+       }
 
        @Override
        public IPoint getSecondCtrlPtAt(final int position) {
diff --git 
a/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/glib/models/impl/LPicture.java
 
b/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/glib/models/impl/LPicture.java
index f749fb3..010e999 100644
--- 
a/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/glib/models/impl/LPicture.java
+++ 
b/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/glib/models/impl/LPicture.java
@@ -9,6 +9,7 @@ import javax.imageio.ImageIO;
 
 import net.sf.latexdraw.badaboom.BadaboomCollector;
 import net.sf.latexdraw.filters.EPSFilter;
+import net.sf.latexdraw.glib.models.GLibUtilities;
 import net.sf.latexdraw.glib.models.ShapeFactory;
 import net.sf.latexdraw.glib.models.interfaces.shape.IPicture;
 import net.sf.latexdraw.glib.models.interfaces.shape.IPoint;
@@ -89,6 +90,23 @@ class LPicture extends LPositionShape implements IPicture {
        }
 
 
+       @Override
+       public void mirrorVertical(final IPoint origin) {
+               final IPoint gc = getGravityCentre();
+               if(GLibUtilities.isValidPoint(origin) && !origin.equals(gc, 
0.0001)) {
+                       translate(0d, gc.verticalSymmetry(origin).getY() - 
gc.getY());
+               }
+       }
+
+       @Override
+       public void mirrorHorizontal(final IPoint origin) {
+               final IPoint gc = getGravityCentre();
+               if(GLibUtilities.isValidPoint(origin) && !origin.equals(gc, 
0.0001)) {
+                       translate(gc.horizontalSymmetry(origin).getX() - 
gc.getX(), 0d);
+               }
+       }
+
+
        /**
         * Creates an EPS image from the source one.
         * @throws IOException If a problem while reading/writing files occurs.
diff --git 
a/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/parsers/svg/SVGPatternElement.java
 
b/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/parsers/svg/SVGPatternElement.java
index 398b057..a3b66f4 100644
--- 
a/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/parsers/svg/SVGPatternElement.java
+++ 
b/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/parsers/svg/SVGPatternElement.java
@@ -50,7 +50,7 @@ public class SVGPatternElement extends SVGElement {
 
        @Override
        public boolean checkAttributes() {
-               return !(getWidth()<0. || getHeight()<0.);
+               return true;
        }
 
 
diff --git 
a/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/util/LResources.java
 
b/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/util/LResources.java
index 45d83b4..4abde59 100644
--- 
a/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/util/LResources.java
+++ 
b/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/util/LResources.java
@@ -1,11 +1,11 @@
 package net.sf.latexdraw.util;
 
-import net.sf.latexdraw.badaboom.BadaboomCollector;
-import net.sf.latexdraw.lang.LangTool;
-
-import javax.swing.*;
 import java.net.MalformedURLException;
 import java.net.URL;
+import javax.swing.ImageIcon;
+import net.sf.latexdraw.LaTeXDraw;
+import net.sf.latexdraw.badaboom.BadaboomCollector;
+import net.sf.latexdraw.lang.LangTool;
 
 /**
  * Contains all the icons and the labels used by latexdraw.<br>
@@ -350,7 +350,7 @@ public final class LResources {
         */
        public static ImageIcon loadImageIcon(final String path) {
                try {
-                       final URL url = Class.class.getResource(path);
+                       final URL url = LaTeXDraw.class.getResource(path);
 
                        if(url==null)
                                throw new MalformedURLException(path);
diff --git 
a/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/util/VersionChecker.java
 
b/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/util/VersionChecker.java
index 961767c..e0a2f05 100755
--- 
a/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/util/VersionChecker.java
+++ 
b/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/util/VersionChecker.java
@@ -36,12 +36,12 @@ import org.malai.action.library.OpenWebPage;
  */
 public class VersionChecker extends Thread {
        /** The version of the application */
-    public static final String VERSION   = "3.3.6";//$NON-NLS-1$
+    public static final String VERSION   = "3.3.7";//$NON-NLS-1$
 
        public static final String VERSION_STABILITY = ""; //$NON-NLS-1$
 
        /** The identifier of the build */
-       public static final String ID_BUILD = "20170712";//$NON-NLS-1$
+       public static final String ID_BUILD = "20171119";//$NON-NLS-1$
 
        /** To change if update is needed or not. */
        public static final boolean WITH_UPDATE = true;
diff --git 
a/latexdraw-core/net.sf.latexdraw/src/resources/main/res/release_note.txt 
b/latexdraw-core/net.sf.latexdraw/src/resources/main/res/release_note.txt
index 5957932..6034456 100644
--- a/latexdraw-core/net.sf.latexdraw/src/resources/main/res/release_note.txt
+++ b/latexdraw-core/net.sf.latexdraw/src/resources/main/res/release_note.txt
@@ -1,12 +1,6 @@
 ************************************************************
-Version 3.3.6 -- 2017/07/12
+Version 3.3.7 -- 19/11/2017
 
-- fixed: the tooltip that shows LaTeX compilation errors while putting the 
cursor over a text shape may freeze the application.
- Moreover, the displayed message was not correct.
-- fixed: problem of encoding (MS950) not supported by the XML serialiser that 
prevented SVG files to be saved.
-- fixed: arcs were not correctly drawn and saved as SVG on certain start/end 
angles.
-- fixed: the installer cannot be run on some configurations (e.g. Fedora 25 
with Wayland).
-- fixed: the shape deletion is not re-activated when clicking the PST tab and 
the clicking the drawing tab back.
-- fixed: the generated PSTricks may be incorrectly commented preventing the 
compilation
-- fixed (usability): no message was displayed in the status bar to explain how 
to draw shapes.
-- fixed (usability): better feedback on compilation errors during exports as 
PDF/PS documents.
+fixed: crash at start-up using Java 9
+fixed: pictures not correctly mirrored
+fixed: control points not mirrored

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-java/latexdraw.git

_______________________________________________
pkg-java-commits mailing list
pkg-java-comm...@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to