Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
bde9f1ab
Commit
bde9f1ab
authored
Feb 21, 2019
by
Piotr Gawron
Browse files
description of transcription site is centered
parent
bd811459
Pipeline
#8898
passed with stage
in 22 minutes and 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
bde9f1ab
minerva
(
12.2.0
~
beta
.2
)
unstable
;
urgency
=
medium
*
Bug
fix
:
description
of
transcription
site
is
centered
(#
720
)
*
Bug
fix
:
selecting
too
few
parameters
in
export
doesn
't throw reportable
error (#721)
* Bug fix: changes in selected checkbox in add project dialog block UI (#722)
...
...
converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/bioEntity/element/species/SpeciesConverter.java
View file @
bde9f1ab
...
...
@@ -699,7 +699,9 @@ public abstract class SpeciesConverter<T extends Species> extends ElementConvert
y
=
transcriptionSite
.
getPosition
().
getY
()
-
DEFAULT_MODIFICATION_DIAMETER
-
DEFAULT_SPECIES_FONT_SIZE
/
2
;
if
(
transcriptionSite
.
getName
()
!=
null
&&
!
transcriptionSite
.
getName
().
isEmpty
())
{
drawText
(
new
Point2D
.
Double
(
x
,
y
),
transcriptionSite
.
getName
(),
graphics
,
true
,
false
);
Point2D
centerTextPoint
=
new
Point2D
.
Double
(
transcriptionSite
.
getPosition
().
getX
()
+
transcriptionSite
.
getWidth
()
/
2
,
y
);
drawText
(
centerTextPoint
,
transcriptionSite
.
getName
(),
graphics
,
true
,
false
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment