 After Andrew's and his brother Lev of Galicia's deaths about 1323, Galicia–Volhynia experienced a power vacuum.Rather than promoting Liubartas and risking a war with Poland, Gediminas married his daughter Eufemija to Boleslaw-Yuri II of Galicia.War with Poland was thereby postponed until 1340.