From 0286918dd4e7a4f8a2591d0d86bef56c7910290d Mon Sep 17 00:00:00 2001 From: Alexei Anoshenko Date: Fri, 6 May 2022 18:19:13 +0300 Subject: [PATCH] Bug fixing --- radius.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/radius.go b/radius.go index bf3862c..7f4b298 100644 --- a/radius.go +++ b/radius.go @@ -331,6 +331,17 @@ func (radius *radiusPropertyData) Get(tag string) interface{} { } } + switch tag { + case TopLeftX, TopRightX, BottomLeftX, BottomRightX: + if value, ok := radius.properties[X]; ok { + return value + } + case TopLeftY, TopRightY, BottomLeftY, BottomRightY: + if value, ok := radius.properties[Y]; ok { + return value + } + } + return nil }