mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
This commit is contained in:
+2
-2
@@ -201,8 +201,8 @@ public class Project implements Serializable {
|
|||||||
public void validate(Object value) throws ValidationException {
|
public void validate(Object value) throws ValidationException {
|
||||||
super.validate(value);
|
super.validate(value);
|
||||||
Size size = (Size) value;
|
Size size = (Size) value;
|
||||||
if (size.compareTo(new Size(1d, SizeUnit.mm)) < 0) {
|
if (size.compareTo(new Size(0.5d, SizeUnit.mm)) < 0) {
|
||||||
throw new ValidationException("must be greater than 1mm");
|
throw new ValidationException("must be at least 0.5mm");
|
||||||
}
|
}
|
||||||
if (size.compareTo(new Size(1d, SizeUnit.in)) > 0) {
|
if (size.compareTo(new Size(1d, SizeUnit.in)) > 0) {
|
||||||
throw new ValidationException("must be less than 1in");
|
throw new ValidationException("must be less than 1in");
|
||||||
|
|||||||
Binary file not shown.
@@ -438,6 +438,10 @@
|
|||||||
<changeType>IMPROVEMENT</changeType>
|
<changeType>IMPROVEMENT</changeType>
|
||||||
<description>Imperial ruler is divided to .1" instead of 1/4"</description>
|
<description>Imperial ruler is divided to .1" instead of 1/4"</description>
|
||||||
</com.diyfever.gui.update.Change>
|
</com.diyfever.gui.update.Change>
|
||||||
|
<com.diyfever.gui.update.Change>
|
||||||
|
<changeType>IMPROVEMENT</changeType>
|
||||||
|
<description>Allow finer grid spacing up to 0.5mm (0.02")</description>
|
||||||
|
</com.diyfever.gui.update.Change>
|
||||||
</changes>
|
</changes>
|
||||||
<url>http://code.google.com/p/diy-layout-creator/downloads/list</url>
|
<url>http://code.google.com/p/diy-layout-creator/downloads/list</url>
|
||||||
</com.diyfever.gui.update.Version>
|
</com.diyfever.gui.update.Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user