Commit 601a226 1 parent eab20bf commit 601a226 Copy full SHA for 601a226
File tree 2 files changed +11
-11
lines changed
src/main/java/org/jabref/gui
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,12 @@ private void updateColumnPreferences() {
61
61
NormalTableColumn normalColumn = (NormalTableColumn ) column ;
62
62
63
63
columnNames .add (normalColumn .getColumnName ());
64
- columnsWidths .add (String .valueOf (normalColumn .getWidth ()));
64
+ columnsWidths .add (String .valueOf (Double . valueOf ( normalColumn .getWidth ()). intValue ()));
65
65
}
66
66
}
67
67
68
- if (columnNames .size () == columnsWidths .size () &&
69
- columnNames .size () == preferences .getStringList (JabRefPreferences .COLUMN_NAMES ).size ()) {
68
+ if (( columnNames .size () == columnsWidths .size () ) &&
69
+ ( columnNames .size () == preferences .getStringList (JabRefPreferences .COLUMN_NAMES ).size () )) {
70
70
preferences .putStringList (JabRefPreferences .COLUMN_NAMES , columnNames );
71
71
preferences .putStringList (JabRefPreferences .COLUMN_WIDTHS , columnsWidths );
72
72
}
Original file line number Diff line number Diff line change @@ -502,7 +502,7 @@ public void storeSettings() {
502
502
503
503
for (TableRow tr : data ) {
504
504
names .add (tr .getName ().toLowerCase (Locale .ROOT ));
505
- widths .add (String .valueOf (tr .getLength ()));
505
+ widths .add (String .valueOf (Double . valueOf ( tr .getLength ()). intValue ()));
506
506
}
507
507
508
508
// Finally, we store the new preferences.
@@ -522,14 +522,14 @@ private void updateOrderAction() {
522
522
final HashMap <String , Integer > map = new HashMap <>();
523
523
524
524
// first element (#) not inside data
525
- /*
526
- for (TableColumn<BibEntry, ?> column : panel.getMainTable().getColumns()) {
527
- String name = column.getText();
528
- if ((name != null) && !name.isEmpty()) {
529
- map.put(name.toLowerCase(Locale.ROOT), i);
530
- }
525
+ /*
526
+ for (TableColumn<BibEntry, ?> column : panel.getMainTable().getColumns()) {
527
+ String name = column.getText();
528
+ if ((name != null) && !name.isEmpty()) {
529
+ map.put(name.toLowerCase(Locale.ROOT), i);
531
530
}
532
- */
531
+ }
532
+ */
533
533
data .sort ((o1 , o2 ) -> {
534
534
Integer n1 = map .get (o1 .getName ());
535
535
Integer n2 = map .get (o2 .getName ());
You can’t perform that action at this time.
0 commit comments