Changeset 2314

Show
Ignore:
Timestamp:
03/10/10 11:50:30 (5 months ago)
Author:
JO94
Message:

put in fix where placeholder image remains when an image fails to load

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FalconView/trunk/public/fvw_core/GeodataDataSources/KMLImageDataResource.cpp

    r2308 r2314  
    3838void CKMLImageDataResource::GetImageData(VARIANT* imageData) 
    3939{ 
    40    if (State() != Resource_Loaded) 
     40   // note that if the resource was loaded, but it failed to get an image 
     41   // (m_imageData.vt == VT_EMPTY), we just return the placeholder 
     42 
     43   if (State() != Resource_Loaded || m_imageData.vt == VT_EMPTY) 
    4144   { 
    4245      static _variant_t defaultImageData;