From b3c06515ee2ac7420a618e660900e138ecefdf6f Mon Sep 17 00:00:00 2001 From: Alberto Otero de la Roza Date: Sun, 1 Dec 2024 19:32:03 +0100 Subject: [PATCH] fix missing reset label style --- VERSION | 2 +- src/gui/windows@view.f90 | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 8bc9257e..6470b768 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.355 +1.2.356 diff --git a/src/gui/windows@view.f90 b/src/gui/windows@view.f90 index 6654bb5d..7e95360f 100644 --- a/src/gui/windows@view.f90 +++ b/src/gui/windows@view.f90 @@ -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 @@ -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