Révision | 111 (tree) |
---|---|
l'heure | 2012-09-16 17:33:21 |
Auteur | monolith52 |
印刷範囲がチャート描画範囲からあふれる問題を修正
@@ -1036,8 +1036,9 @@ | ||
1036 | 1036 | Rectangle rect = getFirstPrintRange(floatingPrintCellSize); |
1037 | 1037 | if (rect == null) |
1038 | 1038 | return false; |
1039 | + int pointY = Math.min(e.getY(), project.getTaskTableModel().getRowCount() * getCellHeight()); | |
1039 | 1040 | floatingPrintCellSize.height = Math.max(10, |
1040 | - (e.getY() - rect.y) / getCellHeight()); | |
1041 | + (pointY - rect.y) / getCellHeight()); | |
1041 | 1042 | repaintProject(); |
1042 | 1043 | return true; |
1043 | 1044 | } else if (dragOperation == OPERATION_PRINT_RANGE) { |
@@ -1044,10 +1045,11 @@ | ||
1044 | 1045 | Rectangle rect = getFirstPrintRange(floatingPrintCellSize); |
1045 | 1046 | if (rect == null) |
1046 | 1047 | return false; |
1048 | + int pointY = Math.min(e.getY(), project.getTaskTableModel().getRowCount() * getCellHeight()); | |
1047 | 1049 | floatingPrintCellSize.width = Math.max(10, |
1048 | 1050 | (e.getX() - rect.x) / getCellWidth()); |
1049 | 1051 | floatingPrintCellSize.height = Math.max(10, |
1050 | - (e.getY() - rect.y) / getCellHeight()); | |
1052 | + (pointY - rect.y) / getCellHeight()); | |
1051 | 1053 | repaintProject(); |
1052 | 1054 | return true; |
1053 | 1055 | } |