Skip to content

Commit e6b0e2d

Browse files
Fix getPRINT_LAYOUT_METADATA_DIR method to use the appropriate internal variable, as it was previously referencing mediaPath from the TMP_MEDIA_PATH setting
1 parent f2bf5bf commit e6b0e2d

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ public class Preferences
835835
static int oldSTR = -1;
836836
static int instrumented = -1;
837837
static string mediaPath;
838+
static string layoutMetadataPath;
838839
static string pdfLib;
839840
static string blobPath;
840841
static string blobPathFolderName;
@@ -1234,30 +1235,30 @@ public static string getTMP_MEDIA_PATH()
12341235
}
12351236
public static string getPRINT_LAYOUT_METADATA_DIR()
12361237
{
1237-
if (mediaPath == null)
1238+
if (layoutMetadataPath == null)
12381239
{
12391240
lock (syncRoot)
12401241
{
1241-
if (mediaPath == null)
1242+
if (layoutMetadataPath == null)
12421243
{
1243-
if (Config.GetValueOf("PRINT_LAYOUT_METADATA_DIR", out mediaPath))
1244+
if (Config.GetValueOf("PRINT_LAYOUT_METADATA_DIR", out layoutMetadataPath))
12441245
{
1245-
mediaPath = mediaPath.Trim();
1246+
layoutMetadataPath = layoutMetadataPath.Trim();
12461247

1247-
if (!String.IsNullOrEmpty(mediaPath) && !mediaPath.EndsWith("\\") && !mediaPath.EndsWith("/"))
1248+
if (!String.IsNullOrEmpty(layoutMetadataPath) && !layoutMetadataPath.EndsWith("\\") && !layoutMetadataPath.EndsWith("/"))
12481249
{
1249-
mediaPath += Path.DirectorySeparatorChar;
1250+
layoutMetadataPath += Path.DirectorySeparatorChar;
12501251
}
12511252
}
12521253
else
12531254
{
1254-
mediaPath = "";
1255+
layoutMetadataPath = string.Empty;
12551256
}
1256-
GXLogging.Debug(log, "PRINT_LAYOUT_METADATA_DIR:", mediaPath);
1257+
GXLogging.Debug(log, "PRINT_LAYOUT_METADATA_DIR:", layoutMetadataPath);
12571258
}
12581259
}
12591260
}
1260-
return mediaPath;
1261+
return layoutMetadataPath;
12611262
}
12621263
internal static string PdfReportLibrary()
12631264
{

0 commit comments

Comments
 (0)