Iets betere foutmeldingen geven bij problemen

svn path=/Website/trunk/; revision=20570
This commit is contained in:
Jos Groot Lipman
2014-02-06 15:05:48 +00:00
parent faa5fda3a0
commit 34e66588bc
3 changed files with 4 additions and 4 deletions

View File

@@ -209,7 +209,7 @@ function SLNKDWF (myProps)
function _Error(msg)
{
new SLNKDWF({maximize : true}).Warning("Fatal error occurred. \nTechnical details for support personnel:\n" + msg);
new SLNKDWF({maximize : false}).Warning("Fatal error occurred. \nTechnical details for support personnel:\n" + msg);
}
// Werkt nog niet echt goed?

View File

@@ -58,7 +58,7 @@ if (typeof(dllMajor) == 'undefined' ||
if (gSLNKEvent && gSLNKEvent.lastDWFfile)
version += "\nLast DWF: " + gSLNKEvent.lastDWFfile;
}
if (gSLNKEvent)
if (gSLNKEvent && gSLNKEvent.success)
{
var accuracy = 1-(Math.log(gSLNKEvent.scaleX)/Math.log(10));
var daccuracy = 2+accuracy; // Voor de distance

View File

@@ -455,7 +455,7 @@ function toDwgXY(imgX, imgY)
{
result = null;
if (gSLNKEvent)
if (gSLNKEvent && gSLNKEvent.success)
{
var result = new Object();
result.scaleX = gSLNKEvent.scaleX; // DWG Size of one screen pixel X
@@ -1550,7 +1550,7 @@ function _doZoom(evt, pStep)
currentY = lastMouseY + (currentY - lastMouseY)/pStep;
dScale/=pStep;
// Preview the scale immediately
if (gSLNKEvent)
if (gSLNKEvent && gSLNKEvent.success)
{
gSLNKEvent.scaleX *=pStep;
gSLNKEvent.scaleY *=pStep;