Merge pull request #4719 from tcontis/bugfix

Fixed issue #4514
This commit is contained in:
Oleg Agafonov 2018-04-06 11:39:06 +04:00 committed by GitHub
commit 202b40a449
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -401,6 +401,7 @@ public class MageBook extends JComponent {
cardDimension = new Dimension(Config.dimensions.frameWidth, Config.dimensions.frameHeight);
}
PermanentToken newToken = new PermanentToken(token, null, token.getOriginalExpansionSetCode(), null);
newToken.removeSummoningSickness();
PermanentView theToken = new PermanentView(newToken, null, null, null);
theToken.setInViewerOnly(true);
final MageCard cardImg = Plugins.instance.getMagePermanent(theToken, bigCard, cardDimension, gameId, true);
@ -650,7 +651,7 @@ public class MageBook extends JComponent {
}
}
public void updateSize(String size) {
public void updateSize(String size){
switch (size) {
case LAYOUT_3x3:
this.conf = new _3x3Configuration();
@ -667,7 +668,6 @@ public class MageBook extends JComponent {
setPreferredSize(new Dimension(conf.WIDTH, conf.HEIGHT));
setMinimumSize(new Dimension(conf.WIDTH, conf.HEIGHT));
addSetTabs();
showCards();
}
/**