{"action":"created","comment":{"url":"https://api.github.com/repos/bjorn/tiled/pulls/comments/127915591","pull_request_review_id":50543864,"id":127915591,"diff_hunk":"@@ -568,6 +571,16 @@ inline void TileLayer::setSize(const QSize &size)\n     mHeight = size.height();\n }\n \n+inline QRect TileLayer::bounds() const\n+{\n+    int x = std::min(0, mBounds.x());\n+    int y = std::min(0, mBounds.y());\n+    int width = std::max(mWidth, mBounds.width());\n+    int height = std::max(mHeight, mBounds.height());","path":"src/libtiled/tilelayer.h","position":35,"original_position":35,"commit_id":"bf0ef5628be59ebae5f368cd9508fe4f61e397d4","original_commit_id":"bf0ef5628be59ebae5f368cd9508fe4f61e397d4","user":{"login":"bjorn","id":531764,"avatar_url":"https://avatars3.githubusercontent.com/u/531764?v=4","gravatar_id":"","url":"https://api.github.com/users/bjorn","html_url":"https://github.com/bjorn","followers_url":"https://api.github.com/users/bjorn/followers","following_url":"https://api.github.com/users/bjorn/following{/other_user}","gists_url":"https://api.github.com/users/bjorn/gists{/gist_id}","starred_url":"https://api.github.com/users/bjorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjorn/subscriptions","organizations_url":"https://api.github.com/users/bjorn/orgs","repos_url":"https://api.github.com/users/bjorn/repos","events_url":"https://api.github.com/users/bjorn/events{/privacy}","received_events_url":"https://api.github.com/users/bjorn/received_events","type":"User","site_admin":false},"body":"Please remove this and document where it is causing issues, so that we can find a way to fix that.","created_at":"2017-07-18T08:44:18Z","updated_at":"2017-07-18T08:46:37Z","html_url":"https://github.com/bjorn/tiled/pull/1651#discussion_r127915591","pull_request_url":"https://api.github.com/repos/bjorn/tiled/pulls/1651","_links":{"self":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/comments/127915591"},"html":{"href":"https://github.com/bjorn/tiled/pull/1651#discussion_r127915591"},"pull_request":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/1651"}}},"pull_request":{"url":"https://api.github.com/repos/bjorn/tiled/pulls/1651","id":130572048,"html_url":"https://github.com/bjorn/tiled/pull/1651","diff_url":"https://github.com/bjorn/tiled/pull/1651.diff","patch_url":"https://github.com/bjorn/tiled/pull/1651.patch","issue_url":"https://api.github.com/repos/bjorn/tiled/issues/1651","number":1651,"state":"open","locked":false,"title":"Modifies bounds function","user":{"login":"ketanhwr","id":2878908,"avatar_url":"https://avatars0.githubusercontent.com/u/2878908?v=4","gravatar_id":"","url":"https://api.github.com/users/ketanhwr","html_url":"https://github.com/ketanhwr","followers_url":"https://api.github.com/users/ketanhwr/followers","following_url":"https://api.github.com/users/ketanhwr/following{/other_user}","gists_url":"https://api.github.com/users/ketanhwr/gists{/gist_id}","starred_url":"https://api.github.com/users/ketanhwr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ketanhwr/subscriptions","organizations_url":"https://api.github.com/users/ketanhwr/orgs","repos_url":"https://api.github.com/users/ketanhwr/repos","events_url":"https://api.github.com/users/ketanhwr/events{/privacy}","received_events_url":"https://api.github.com/users/ketanhwr/received_events","type":"User","site_admin":false},"body":"`mRegion` keeps track of the non-empty region of layer. The bounds function is modified so that it calculates the bounds using `mRegion` itself.","created_at":"2017-07-14T11:43:19Z","updated_at":"2017-07-18T08:46:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c298a67746b4a591d1578bb1a8f57eae80693915","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/bjorn/tiled/pulls/1651/commits","review_comments_url":"https://api.github.com/repos/bjorn/tiled/pulls/1651/comments","review_comment_url":"https://api.github.com/repos/bjorn/tiled/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bjorn/tiled/issues/1651/comments","statuses_url":"https://api.github.com/repos/bjorn/tiled/statuses/bf0ef5628be59ebae5f368cd9508fe4f61e397d4","head":{"label":"ketanhwr:infinite-maps","ref":"infinite-maps","sha":"bf0ef5628be59ebae5f368cd9508fe4f61e397d4","user":{"login":"ketanhwr","id":2878908,"avatar_url":"https://avatars0.githubusercontent.com/u/2878908?v=4","gravatar_id":"","url":"https://api.github.com/users/ketanhwr","html_url":"https://github.com/ketanhwr","followers_url":"https://api.github.com/users/ketanhwr/followers","following_url":"https://api.github.com/users/ketanhwr/following{/other_user}","gists_url":"https://api.github.com/users/ketanhwr/gists{/gist_id}","starred_url":"https://api.github.com/users/ketanhwr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ketanhwr/subscriptions","organizations_url":"https://api.github.com/users/ketanhwr/orgs","repos_url":"https://api.github.com/users/ketanhwr/repos","events_url":"https://api.github.com/users/ketanhwr/events{/privacy}","received_events_url":"https://api.github.com/users/ketanhwr/received_events","type":"User","site_admin":false},"repo":{"id":83340339,"name":"tiled","full_name":"ketanhwr/tiled","owner":{"login":"ketanhwr","id":2878908,"avatar_url":"https://avatars0.githubusercontent.com/u/2878908?v=4","gravatar_id":"","url":"https://api.github.com/users/ketanhwr","html_url":"https://github.com/ketanhwr","followers_url":"https://api.github.com/users/ketanhwr/followers","following_url":"https://api.github.com/users/ketanhwr/following{/other_user}","gists_url":"https://api.github.com/users/ketanhwr/gists{/gist_id}","starred_url":"https://api.github.com/users/ketanhwr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ketanhwr/subscriptions","organizations_url":"https://api.github.com/users/ketanhwr/orgs","repos_url":"https://api.github.com/users/ketanhwr/repos","events_url":"https://api.github.com/users/ketanhwr/events{/privacy}","received_events_url":"https://api.github.com/users/ketanhwr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ketanhwr/tiled","description":"A generic tile map editor","fork":true,"url":"https://api.github.com/repos/ketanhwr/tiled","forks_url":"https://api.github.com/repos/ketanhwr/tiled/forks","keys_url":"https://api.github.com/repos/ketanhwr/tiled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ketanhwr/tiled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ketanhwr/tiled/teams","hooks_url":"https://api.github.com/repos/ketanhwr/tiled/hooks","issue_events_url":"https://api.github.com/repos/ketanhwr/tiled/issues/events{/number}","events_url":"https://api.github.com/repos/ketanhwr/tiled/events","assignees_url":"https://api.github.com/repos/ketanhwr/tiled/assignees{/user}","branches_url":"https://api.github.com/repos/ketanhwr/tiled/branches{/branch}","tags_url":"https://api.github.com/repos/ketanhwr/tiled/tags","blobs_url":"https://api.github.com/repos/ketanhwr/tiled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ketanhwr/tiled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ketanhwr/tiled/git/refs{/sha}","trees_url":"https://api.github.com/repos/ketanhwr/tiled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ketanhwr/tiled/statuses/{sha}","languages_url":"https://api.github.com/repos/ketanhwr/tiled/languages","stargazers_url":"https://api.github.com/repos/ketanhwr/tiled/stargazers","contributors_url":"https://api.github.com/repos/ketanhwr/tiled/contributors","subscribers_url":"https://api.github.com/repos/ketanhwr/tiled/subscribers","subscription_url":"https://api.github.com/repos/ketanhwr/tiled/subscription","commits_url":"https://api.github.com/repos/ketanhwr/tiled/commits{/sha}","git_commits_url":"https://api.github.com/repos/ketanhwr/tiled/git/commits{/sha}","comments_url":"https://api.github.com/repos/ketanhwr/tiled/comments{/number}","issue_comment_url":"https://api.github.com/repos/ketanhwr/tiled/issues/comments{/number}","contents_url":"https://api.github.com/repos/ketanhwr/tiled/contents/{+path}","compare_url":"https://api.github.com/repos/ketanhwr/tiled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ketanhwr/tiled/merges","archive_url":"https://api.github.com/repos/ketanhwr/tiled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ketanhwr/tiled/downloads","issues_url":"https://api.github.com/repos/ketanhwr/tiled/issues{/number}","pulls_url":"https://api.github.com/repos/ketanhwr/tiled/pulls{/number}","milestones_url":"https://api.github.com/repos/ketanhwr/tiled/milestones{/number}","notifications_url":"https://api.github.com/repos/ketanhwr/tiled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ketanhwr/tiled/labels{/name}","releases_url":"https://api.github.com/repos/ketanhwr/tiled/releases{/id}","deployments_url":"https://api.github.com/repos/ketanhwr/tiled/deployments","created_at":"2017-02-27T17:57:45Z","updated_at":"2017-06-17T16:59:00Z","pushed_at":"2017-07-17T18:50:46Z","git_url":"git://github.com/ketanhwr/tiled.git","ssh_url":"git@github.com:ketanhwr/tiled.git","clone_url":"https://github.com/ketanhwr/tiled.git","svn_url":"https://github.com/ketanhwr/tiled","homepage":"http://www.mapeditor.org/","size":24820,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bjorn:master","ref":"master","sha":"afe93e705782d5218e6f175e8152803e34d16926","user":{"login":"bjorn","id":531764,"avatar_url":"https://avatars3.githubusercontent.com/u/531764?v=4","gravatar_id":"","url":"https://api.github.com/users/bjorn","html_url":"https://github.com/bjorn","followers_url":"https://api.github.com/users/bjorn/followers","following_url":"https://api.github.com/users/bjorn/following{/other_user}","gists_url":"https://api.github.com/users/bjorn/gists{/gist_id}","starred_url":"https://api.github.com/users/bjorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjorn/subscriptions","organizations_url":"https://api.github.com/users/bjorn/orgs","repos_url":"https://api.github.com/users/bjorn/repos","events_url":"https://api.github.com/users/bjorn/events{/privacy}","received_events_url":"https://api.github.com/users/bjorn/received_events","type":"User","site_admin":false},"repo":{"id":1418150,"name":"tiled","full_name":"bjorn/tiled","owner":{"login":"bjorn","id":531764,"avatar_url":"https://avatars3.githubusercontent.com/u/531764?v=4","gravatar_id":"","url":"https://api.github.com/users/bjorn","html_url":"https://github.com/bjorn","followers_url":"https://api.github.com/users/bjorn/followers","following_url":"https://api.github.com/users/bjorn/following{/other_user}","gists_url":"https://api.github.com/users/bjorn/gists{/gist_id}","starred_url":"https://api.github.com/users/bjorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjorn/subscriptions","organizations_url":"https://api.github.com/users/bjorn/orgs","repos_url":"https://api.github.com/users/bjorn/repos","events_url":"https://api.github.com/users/bjorn/events{/privacy}","received_events_url":"https://api.github.com/users/bjorn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bjorn/tiled","description":"A generic tile map editor","fork":false,"url":"https://api.github.com/repos/bjorn/tiled","forks_url":"https://api.github.com/repos/bjorn/tiled/forks","keys_url":"https://api.github.com/repos/bjorn/tiled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bjorn/tiled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bjorn/tiled/teams","hooks_url":"https://api.github.com/repos/bjorn/tiled/hooks","issue_events_url":"https://api.github.com/repos/bjorn/tiled/issues/events{/number}","events_url":"https://api.github.com/repos/bjorn/tiled/events","assignees_url":"https://api.github.com/repos/bjorn/tiled/assignees{/user}","branches_url":"https://api.github.com/repos/bjorn/tiled/branches{/branch}","tags_url":"https://api.github.com/repos/bjorn/tiled/tags","blobs_url":"https://api.github.com/repos/bjorn/tiled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bjorn/tiled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bjorn/tiled/git/refs{/sha}","trees_url":"https://api.github.com/repos/bjorn/tiled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bjorn/tiled/statuses/{sha}","languages_url":"https://api.github.com/repos/bjorn/tiled/languages","stargazers_url":"https://api.github.com/repos/bjorn/tiled/stargazers","contributors_url":"https://api.github.com/repos/bjorn/tiled/contributors","subscribers_url":"https://api.github.com/repos/bjorn/tiled/subscribers","subscription_url":"https://api.github.com/repos/bjorn/tiled/subscription","commits_url":"https://api.github.com/repos/bjorn/tiled/commits{/sha}","git_commits_url":"https://api.github.com/repos/bjorn/tiled/git/commits{/sha}","comments_url":"https://api.github.com/repos/bjorn/tiled/comments{/number}","issue_comment_url":"https://api.github.com/repos/bjorn/tiled/issues/comments{/number}","contents_url":"https://api.github.com/repos/bjorn/tiled/contents/{+path}","compare_url":"https://api.github.com/repos/bjorn/tiled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bjorn/tiled/merges","archive_url":"https://api.github.com/repos/bjorn/tiled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bjorn/tiled/downloads","issues_url":"https://api.github.com/repos/bjorn/tiled/issues{/number}","pulls_url":"https://api.github.com/repos/bjorn/tiled/pulls{/number}","milestones_url":"https://api.github.com/repos/bjorn/tiled/milestones{/number}","notifications_url":"https://api.github.com/repos/bjorn/tiled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bjorn/tiled/labels{/name}","releases_url":"https://api.github.com/repos/bjorn/tiled/releases{/id}","deployments_url":"https://api.github.com/repos/bjorn/tiled/deployments","created_at":"2011-02-27T15:18:22Z","updated_at":"2017-07-18T08:01:38Z","pushed_at":"2017-07-18T02:14:35Z","git_url":"git://github.com/bjorn/tiled.git","ssh_url":"git@github.com:bjorn/tiled.git","clone_url":"https://github.com/bjorn/tiled.git","svn_url":"https://github.com/bjorn/tiled","homepage":"http://www.mapeditor.org/","size":25683,"stargazers_count":4809,"watchers_count":4809,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1030,"mirror_url":null,"open_issues_count":357,"forks":1030,"open_issues":357,"watchers":4809,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/1651"},"html":{"href":"https://github.com/bjorn/tiled/pull/1651"},"issue":{"href":"https://api.github.com/repos/bjorn/tiled/issues/1651"},"comments":{"href":"https://api.github.com/repos/bjorn/tiled/issues/1651/comments"},"review_comments":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/1651/comments"},"review_comment":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bjorn/tiled/pulls/1651/commits"},"statuses":{"href":"https://api.github.com/repos/bjorn/tiled/statuses/bf0ef5628be59ebae5f368cd9508fe4f61e397d4"}}}}
{"actor":{"display_login":"bjorn"}}