openbsd-ports/geo/merkaartor/patches/patch-src_Render_NativeRenderDialog_cpp
2010-06-13 10:57:35 +00:00

43 lines
1.3 KiB
Plaintext

$OpenBSD: patch-src_Render_NativeRenderDialog_cpp,v 1.3 2010/06/13 10:57:35 landry Exp $
Confuses g++3
--- src/Render/NativeRenderDialog.cpp.orig Sun Jun 6 16:41:25 2010
+++ src/Render/NativeRenderDialog.cpp Sat Jun 12 16:48:48 2010
@@ -110,13 +110,14 @@ void NativeRenderDialog::render()
MapView* vw = new MapView(NULL);
vw->setDocument(mw->document());
- CoordBox VP(Coord(
+ Coord a = Coord(
angToCoord(sbMinLat->value()),
angToCoord(sbMinLon->value())
- ), Coord(
+ );
+ Coord b = Coord(
angToCoord(sbMaxLat->value()),
- angToCoord(sbMaxLon->value())
- ));
+ angToCoord(sbMaxLon->value()));
+ CoordBox VP(a,b);
Projection aProj;
QRect theR(0, 0, w, h);
@@ -164,13 +165,14 @@ void NativeRenderDialog::render()
void NativeRenderDialog::calcRatio()
{
- CoordBox theB(Coord(
+ Coord a = Coord(
angToCoord(sbMinLat->value()),
angToCoord(sbMinLon->value())
- ), Coord(
+ );
+ Coord b = Coord(
angToCoord(sbMaxLat->value()),
- angToCoord(sbMaxLon->value())
- ));
+ angToCoord(sbMaxLon->value()));
+ CoordBox theB(a,b);
Projection theProj;
//int w = sbPreviewWidth->value();
//int h = sbPreviewHeight->value();