From 34275019417ca6f5244356af3f7d54e6cc17c9b1 Mon Sep 17 00:00:00 2001 From: dmtr99 <49044495+dmtr99@users.noreply.github.com> Date: Sun, 30 Jan 2022 16:37:07 +0100 Subject: [PATCH] Correction integer divider dividing by integer will trigger an error in V2 --- Gdip_All.ahk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gdip_All.ahk b/Gdip_All.ahk index 120e006..ee0ffe3 100644 --- a/Gdip_All.ahk +++ b/Gdip_All.ahk @@ -2269,7 +2269,7 @@ Gdip_TextToGraphics(pGraphics, Text, Options, Font:="Arial", Width:="", Height:= Align := 0, Alignments := "Near|Left|Centre|Center|Far|Right" for eachAlignment, valAlignment in StrSplit( Alignments, "|" ) { if RegExMatch(Options, "\b" valAlignment) { - Align |= A_Index//2.1 ; 0|0|1|1|2|2 + Align |= A_Index*10//21 ; 0|0|1|1|2|2 } }