• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisioned61148babb1bd2790a1d30dea3336bc78166097 (tree)
Time2013-03-27 22:05:41
Authornekora <nekora@user...>
Commiternekora

Log Message

PUT位置が上にずれるバグ修正

Change Summary

Incremental Difference

--- a/src/nekora/cwn/MDPSMain.java
+++ b/src/nekora/cwn/MDPSMain.java
@@ -471,7 +471,7 @@ public class MDPSMain extends Application{
471471 try {
472472 logger.info(outsize+" / "+curConfFile.getCanonicalPath());
473473 points = readOutputConfig(curConfFile, dpi);
474- logger.info("L="+points[L_PAGE]+" R="+points[R_PAGE]+" 全体の大きさ="+points[ALL_PAGE]);
474+ logger.info("Put位置 L="+points[L_PAGE]+" R="+points[R_PAGE]+" 全体の大きさ="+points[ALL_PAGE]);
475475 } catch (IOException | JDOMException e1) {
476476 java.awt.Toolkit.getDefaultToolkit().beep();
477477 String msg="定義ファイル読み込み失敗 ファイル=" +curConfFile+ " エラー="+e1.getLocalizedMessage();
--- a/src/nekora/cwn/paper/InputPaper.java
+++ b/src/nekora/cwn/paper/InputPaper.java
@@ -96,8 +96,9 @@ public class InputPaper {
9696 logger.info("出力紙の高さ=その他なので内枠と出力紙の中心を合わせる");
9797 double a = inner.y+(inner.height/2);
9898 double b = h/2;
99- cropR.y=(int)(inner.y+((a-b)/2));
100- if(h <paper.height){
99+ // cropR.y=(int)(inner.y+((a-b)/2));
100+ cropR.y=(int)Math.round(a-b);
101+ if(h<=paper.height){
101102 cropR.height=h;
102103 putR.y = 0;
103104 }else{
@@ -131,6 +132,8 @@ public class InputPaper {
131132 putL = new Point();
132133 putL.y=putR.y;
133134 putL.x = putR.x - cropR.width;
135+
136+ logger.info("cropL="+cropL+" cropR="+cropR+" putL="+putL+" putR="+putR);
134137 }
135138
136139 /**
@@ -207,7 +210,8 @@ public class InputPaper {
207210 logger.info("出力紙の高さ=その他なので内枠と出力紙の中心を合わせる");
208211 double a = inner.y+(inner.height/2);
209212 double b = h/2;
210- cropC.y=(int)(inner.y+((a-b)/2));
213+ //cropC.y=(int)(inner.y+((a-b)/2));
214+ cropC.y=(int)(Math.round(a-b));
211215 if(h <paper.height){
212216 cropC.height=h;
213217 putC.y = 0;
@@ -217,7 +221,7 @@ public class InputPaper {
217221 }
218222 }
219223
220-
224+ logger.info("cropC="+cropC+" putC="+putC);
221225 }
222226
223227 /**