From bdd722ba09afec8f4254e42ef3363a39864ebf77 Mon Sep 17 00:00:00 2001 From: Mikalai Turankou Date: Thu, 14 Nov 2024 12:26:35 +0300 Subject: [PATCH] Fixed issue while setting the view radius corner values from resource file --- radius.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radius.go b/radius.go index fd7d2b2..19f67c2 100644 --- a/radius.go +++ b/radius.go @@ -592,8 +592,8 @@ func (radius *radiusPropertyData) Set(tag string, value any) bool { case string: if strings.Contains(value, "/") { if values := strings.Split(value, "/"); len(values) == 2 { - xOK := radius.Set(tag+"-x", value[0]) - yOK := radius.Set(tag+"-y", value[1]) + xOK := radius.Set(tag+"-x", values[0]) + yOK := radius.Set(tag+"-y", values[1]) return xOK && yOK } else { notCompatibleType(tag, value)