Changeset 20597


Ignore:
Timestamp:
Feb 20, 2012 6:54:56 AM (5 years ago)
Author:
gpotts
Message:

Added patch from OTB to have a support data class allocated during save state

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ossim/src/ossim/projection/ossimIkonosRpcModel.cpp

    r16867 r20597  
    849849                                    const char* prefix)
    850850{
    851    if(theSupportData.valid())
    852    {
    853       ossimString supportPrefix = ossimString(prefix) + "support_data.";
    854       theSupportData->loadState(kwl, supportPrefix);
    855    }
     851   if(!theSupportData.valid())
     852   {
     853      theSupportData = new ossimIkonosMetaData();
     854   }
     855   ossimString supportPrefix = ossimString(prefix) + "support_data.";
     856   theSupportData->loadState(kwl, supportPrefix);
    856857
    857858   return ossimRpcModel::loadState(kwl, prefix);
Note: See TracChangeset for help on using the changeset viewer.