git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removes unnecessary clearFastPaint
[jalview.git]
/
src
/
jalview
/
gui
/
AlignFrame.java
diff --git
a/src/jalview/gui/AlignFrame.java
b/src/jalview/gui/AlignFrame.java
index
270023e
..
27a0f76
100644
(file)
--- a/
src/jalview/gui/AlignFrame.java
+++ b/
src/jalview/gui/AlignFrame.java
@@
-2224,7
+2224,7
@@
public class AlignFrame extends GAlignFrame implements DropTargetListener,
{
// propagate alignment changed.
{
// propagate alignment changed.
- viewport.getRanges().setEndSeq(alignment.getHeight());
+ viewport.getRanges().setEndSeq(alignment.getHeight() - 1);
if (annotationAdded)
{
// Duplicate sequence annotation in all views.
if (annotationAdded)
{
// Duplicate sequence annotation in all views.
@@
-3325,7
+3325,7
@@
public class AlignFrame extends GAlignFrame implements DropTargetListener,
/**
* Java only
*
/**
* Java only
*
- * @j2sNative
+ * @j2sIgnore
*/
{
JEditorPane editPane = new JEditorPane("text/html", "");
*/
{
JEditorPane editPane = new JEditorPane("text/html", "");
@@
-4544,8
+4544,13
@@
public class AlignFrame extends GAlignFrame implements DropTargetListener,
: FormatAdapter.checkProtocol(fileName));
if (protocol == DataSourceType.FILE)
{
: FormatAdapter.checkProtocol(fileName));
if (protocol == DataSourceType.FILE)
{
- File fl = (file instanceof File ? (File) file
- : new File(fileName));
+ File fl;
+ if (file instanceof File) {
+ fl = (File) file;
+ Platform.cacheFileData(fl);
+ } else {
+ fl = new File(fileName);
+ }
pdbfn = fl.getName();
}
else if (protocol == DataSourceType.URL)
pdbfn = fl.getName();
}
else if (protocol == DataSourceType.URL)