src/hbcore/image/hbiconsource.cpp
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 3 11d3954df52a
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
    95     if((buffer.length() > NVG_VIEWBOX_WIDTH_OFS) && (buffer.length() > NVG_VIEWBOX_HEIGHT_OFS)) {	
    95     if((buffer.length() > NVG_VIEWBOX_WIDTH_OFS) && (buffer.length() > NVG_VIEWBOX_HEIGHT_OFS)) {	
    96 	    float lViewboxWidth = * (float*)(lBuf + NVG_VIEWBOX_WIDTH_OFS);
    96 	    float lViewboxWidth = * (float*)(lBuf + NVG_VIEWBOX_WIDTH_OFS);
    97 	    float lViewboxHeight = * (float*)(lBuf + NVG_VIEWBOX_HEIGHT_OFS);
    97 	    float lViewboxHeight = * (float*)(lBuf + NVG_VIEWBOX_HEIGHT_OFS);
    98 
    98 
    99 	    if (lViewboxWidth > 0 && lViewboxHeight > 0) {
    99 	    if (lViewboxWidth > 0 && lViewboxHeight > 0) {
   100 	        ret = QSize(lViewboxWidth, lViewboxHeight);
   100 	        ret = QSize((int)lViewboxWidth, (int)lViewboxHeight);
   101 	    } else {
   101 	    } else {
   102 	        ret = QSize(0, 0);
   102 	        ret = QSize(0, 0);
   103 	    }
   103 	    }
   104     }
   104     }
   105     return ret;
   105     return ret;