Skip to content

Commit

Permalink
fix missing reset label style
Browse files Browse the repository at this point in the history
  • Loading branch information
aoterodelaroza committed Dec 1, 2024
1 parent ca24c8b commit b3c0651
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.355
1.2.356
5 changes: 4 additions & 1 deletion src/gui/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ module subroutine draw_view(w)
if (changedisplay(2)) w%sc%rep(i)%bonds_display = isbond
if (changedisplay(3)) then
w%sc%rep(i)%labels_display = islabelsl
if (islabelsl) &
if (islabelsl) then
w%sc%rep(i)%label_style%style = islabels
call w%sc%rep(i)%reset_label_style()
end if
end if
elseif (w%sc%rep(i)%type == reptype_unitcell) then
if (changedisplay(4)) w%sc%rep(i)%shown = isuc
Expand Down Expand Up @@ -463,6 +465,7 @@ module subroutine draw_view(w)
else
sysc(i)%sc%rep(j)%label_style%style = islabels
end if
call sysc(i)%sc%rep(j)%reset_label_style()
end if
elseif (sysc(i)%sc%rep(j)%type == reptype_unitcell.and.&
.not.sys(w%view_selected)%c%ismolecule) then
Expand Down

0 comments on commit b3c0651

Please sign in to comment.