Changeset 1002


Ignore:
Timestamp:
07/14/20 00:22:32 (4 years ago)
Author:
Maciej Komosinski
Message:

Model::rawGeno() now ignores model validity

Location:
cpp/frams/model
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/model.cpp

    r999 r1002  
    441441{
    442442        Geno tmpgen;
    443         makeGeno(tmpgen);
     443        makeGeno(tmpgen, NULL, true, true);
    444444        return tmpgen;
    445445}
    446446
    447 void Model::makeGeno(Geno &g, MultiMap *map, bool handle_defaults)
    448 {
    449         if ((buildstatus != valid) && (buildstatus != building))
     447void Model::makeGeno(Geno &g, MultiMap *map, bool handle_defaults, bool can_be_invalid)
     448{
     449        if ((buildstatus != valid) && (!can_be_invalid))
    450450        {
    451451                g = Geno("", Geno::FORMAT_INVALID, "", "invalid model");
  • cpp/frams/model/model.h

    r999 r1002  
    215215
    216216        /// make f0 genotype from current construction (low level version of getF0Geno)
    217         void makeGeno(Geno &, MultiMap *map = 0, bool handle_defaults = true);
     217        void makeGeno(Geno &, MultiMap *map = 0, bool handle_defaults = true, bool can_be_invalid = false);
    218218
    219219        /** @return Mapping from source genotype (0-based position in text) to model elements reference numbers.
Note: See TracChangeset for help on using the changeset viewer.