changeset 80:5d33e98710a0 v1.4.2

- Fixed pin transitions between world map and flight map.
author Nenue
date Mon, 10 Apr 2017 16:44:33 -0400
parents 9be69336c0b3
children 2a86d6584ddd
files WorldQuests.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/WorldQuests.lua	Mon Apr 10 13:14:29 2017 -0400
+++ b/WorldQuests.lua	Mon Apr 10 16:44:33 2017 -0400
@@ -582,9 +582,10 @@
 
     local questID, x, y = info.questId, info.x, info.y
     local pin = self:AcquirePin(info)
+
     if pin then
       print(pin.title, pin.isStale)
-      if pin:IsShown() and (layoutDirty or pin.isStale) then
+      if pin:IsShown() and (layoutDirty or pin.isStale or (pin.owningFrame ~= WorldMapFrame)) then
         local scaleFactor = SCALE_FACTORS[(pin.dataLoaded and not pin.filtered) and scaleConstant or 1]
         pin.owningFrame = WorldMapFrame
         pin:SetAnchor(WorldMapPOIFrame, x, y, self.hostWidth, self.hostHeight, scaleFactor)