C2025-024 #590
@@ -1209,14 +1209,10 @@ namespace VEPROMS
|
|||||||
// See if there is an existing format file that was created as a copy. If so, check if the passed in format's
|
// See if there is an existing format file that was created as a copy. If so, check if the passed in format's
|
||||||
// config is the same as an existing 'Copy of' format - if so, use rather than importing the same format as
|
// config is the same as an existing 'Copy of' format - if so, use rather than importing the same format as
|
||||||
// defined by config.
|
// defined by config.
|
||||||
foreach (var existname in existingFormat.Where(existname => existname.Key.Contains(name)))
|
foreach (string cpy in existingFormat.Select(existname => existname.Key).Where(existname => existname.Contains(name) && existname.StartsWith("Copy") && existname.Contains("of " + name)))
|
||||||
{
|
{
|
||||||
string cpy = existname.Key;
|
FormatInfo exFI = FormatInfo.Get(existingFormat[cpy]);
|
||||||
if (cpy.StartsWith("Copy") && cpy.Contains("of " + name))
|
if (exFI.Config == config) return cpy;
|
||||||
{
|
|
||||||
FormatInfo exFI = FormatInfo.Get(existingFormat[cpy]);
|
|
||||||
if (exFI.Config == config) return cpy;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -3110,7 +3106,7 @@ namespace VEPROMS
|
|||||||
bool hasNewROID = (content.MyGrid.Data.Contains(glookFor));
|
bool hasNewROID = (content.MyGrid.Data.Contains(glookFor));
|
||||||
if (hasNewROID)
|
if (hasNewROID)
|
||||||
content.MyGrid.Data = content.MyGrid.Data.Replace(glookFor, greplaceWith);
|
content.MyGrid.Data = content.MyGrid.Data.Replace(glookFor, greplaceWith);
|
||||||
else if (!hasNewROID && glookFor.Contains("0041") && glookFor.Contains("FFFF"))
|
else if (glookFor.Contains("0041") && glookFor.Contains("FFFF"))
|
||||||
{
|
{
|
||||||
string newGlookFor = glookFor;
|
string newGlookFor = glookFor;
|
||||||
newGlookFor = newGlookFor.Replace("0041", "0000");
|
newGlookFor = newGlookFor.Replace("0041", "0000");
|
||||||
|
@@ -313,6 +313,7 @@ namespace VEPROMS
|
|||||||
return xroid;
|
return xroid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//overridden - used to set the RO location for RO Images that are not in annotations
|
||||||
protected override void SetROLocation(ref XmlElement xindivid, ROFSTLookup.rochild roc, RODbInfo rodb, bool isMulti)
|
protected override void SetROLocation(ref XmlElement xindivid, ROFSTLookup.rochild roc, RODbInfo rodb, bool isMulti)
|
||||||
{
|
{
|
||||||
string imgfile = GetROImageFileLocation(roc, rodb, isMulti);
|
string imgfile = GetROImageFileLocation(roc, rodb, isMulti);
|
||||||
|
Reference in New Issue
Block a user