Iets betere foutmeldingen geven bij problemen
svn path=/Website/trunk/; revision=20570
This commit is contained in:
@@ -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?
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user