Skip to content

Commit 2f4645b

Browse files
committed
Fixed constructor not setting the min size of the drawable.
1 parent 552277a commit 2f4645b

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGES #
22

3+
### Version 5.0.1 ###
4+
5+
* Fixed constructor not setting the min size of the drawable.
6+
37
### Version 5.0.0 ###
48

59
* API CHANGE: playMode is now an int to be compatible with the SkinLoader

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### TenPatch ###
44

5-
Version 5.0.0
5+
Version 5.0.1
66

77
This project is an alternative to libGDX's 9patch implementation. It has the following features:
88

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ allprojects {
1919
apply plugin: "eclipse"
2020
apply plugin: "idea"
2121

22-
version = '5.0.0'
22+
version = '5.0.1'
2323
group = 'com.github.raeleus.TenPatch'
2424
ext {
2525
appName = "tenpatch"

tenpatch/src/com/ray3k/tenpatch/TenPatchDrawable.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ public void set(TenPatchDrawable other) {
138138
autoUpdate = other.autoUpdate;
139139
playMode = other.playMode;
140140
seed = other.seed;
141+
setMinWidth(other.getMinWidth());
142+
setMinHeight(other.getMinHeight());
141143
}
142144

143145
public static class InvalidPatchException extends RuntimeException {

0 commit comments

Comments
 (0)