• R/O
  • SSH
  • HTTPS

freegantt: Commit


Commit MetaInfo

Révision111 (tree)
l'heure2012-09-16 17:33:21
Auteurmonolith52

Message de Log

印刷範囲がチャート描画範囲からあふれる問題を修正

Change Summary

Modification

--- trunk/src/jp/sourceforge/freegantt/swing/TaskLineDataPane.java (revision 110)
+++ trunk/src/jp/sourceforge/freegantt/swing/TaskLineDataPane.java (revision 111)
@@ -1036,8 +1036,9 @@
10361036 Rectangle rect = getFirstPrintRange(floatingPrintCellSize);
10371037 if (rect == null)
10381038 return false;
1039+ int pointY = Math.min(e.getY(), project.getTaskTableModel().getRowCount() * getCellHeight());
10391040 floatingPrintCellSize.height = Math.max(10,
1040- (e.getY() - rect.y) / getCellHeight());
1041+ (pointY - rect.y) / getCellHeight());
10411042 repaintProject();
10421043 return true;
10431044 } else if (dragOperation == OPERATION_PRINT_RANGE) {
@@ -1044,10 +1045,11 @@
10441045 Rectangle rect = getFirstPrintRange(floatingPrintCellSize);
10451046 if (rect == null)
10461047 return false;
1048+ int pointY = Math.min(e.getY(), project.getTaskTableModel().getRowCount() * getCellHeight());
10471049 floatingPrintCellSize.width = Math.max(10,
10481050 (e.getX() - rect.x) / getCellWidth());
10491051 floatingPrintCellSize.height = Math.max(10,
1050- (e.getY() - rect.y) / getCellHeight());
1052+ (pointY - rect.y) / getCellHeight());
10511053 repaintProject();
10521054 return true;
10531055 }
Afficher sur ancien navigateur de dépôt.